[CRYPTO] digest: Add alignment handling
Some hash modules load/store data words directly. The digest layer should pass properly aligned buffer to update()/final() method. This patch also add cra_alignmask to some hash modules. Signed-off-by:Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/digest.c 27 additions, 15 deletionscrypto/digest.c
- crypto/michael_mic.c 1 addition, 0 deletionscrypto/michael_mic.c
- crypto/sha1.c 1 addition, 0 deletionscrypto/sha1.c
- crypto/sha256.c 1 addition, 0 deletionscrypto/sha256.c
- crypto/sha512.c 2 additions, 0 deletionscrypto/sha512.c
- crypto/tgr192.c 3 additions, 0 deletionscrypto/tgr192.c
Loading
Please register or sign in to comment