crypto: atmel-sha - fix algorihtm registration
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 29 Jan 2016 16:04:02 +0000 (17:04 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 30 Jan 2016 14:14:27 +0000 (22:14 +0800)
commitcc831d32d7b1bd45c5d74c44d8e39d354049c369
tree94c789fa3421027fc62c8400fb646ea0a8c4874e
parenta7c58ac06224b83dba93eaafde88535d5da60aef
crypto: atmel-sha - fix algorihtm registration

This patch implements the missing .import() and .export() mandatory
hooks for asynchronous hash algorithms. It also sets the relevant, non
zero, value for the .statesize field when declaring the supported SHA
algorithms. Indeed a zero value of .statesize prevents the algorithm from
being registered.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c