Re: [PATCH 2/4] crypto: stm32 - Support for STM32 CRC32 crypto module

2017-03-14 Thread Corentin Labbe
On Tue, Mar 14, 2017 at 05:37:24PM +0100, Fabien Dessenne wrote: > +static int stm32_crc_remove(struct platform_device *pdev) > +{ > + struct stm32_crc *crc = platform_get_drvdata(pdev); > + > + spin_lock(_list.lock); > + list_del(>list); > + spin_unlock(_list.lock); > + > +

[PATCH 2/4] crypto: stm32 - Support for STM32 CRC32 crypto module

2017-03-14 Thread Fabien Dessenne
This module registers a CRC32 ("Ethernet") and a CRC32C (Castagnoli) algorithm that make use of the STMicroelectronics STM32 crypto hardware. Theses algorithms are compatible with the little-endian generic ones. Both algorithms use ~0 as default seed (key). With CRC32C the output is xored with