crypto:starfive: Include bug fixes for hash/hmac found by Linux selftest.
authorjiajie.ho <jiajie.ho@starfivetech.com>
Thu, 21 Jul 2022 07:25:52 +0000 (15:25 +0800)
committerjiajie.ho <jiajie.ho@starfivetech.com>
Thu, 21 Jul 2022 07:25:52 +0000 (15:25 +0800)
commit6c614913d1ad0fd09c8e963c25d7139054c11050
tree8a066d67e77e5bfbc2851a3867fe3394439c784a
parent274461d91cf3d04272a72de1f61ac9df4b42315c
crypto:starfive: Include bug fixes for hash/hmac found by Linux selftest.

SHA/HMAC fixes:
1. Updated SM3 blocksize and digestsize.
2. Fixed non 32bit-aligned key input for HMAC.
3. Removed unnecessary init sequence check from SHA/HMAC.

Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
drivers/crypto/starfive/jh7110/jh7110-sha.c