CR_1831:crypto:starfive: Add fallback algo for crypto drivers
authorjiajie.ho <jiajie.ho@starfivetech.com>
Tue, 23 Aug 2022 02:48:11 +0000 (10:48 +0800)
committerjiajie.ho <jiajie.ho@starfivetech.com>
Wed, 24 Aug 2022 08:34:17 +0000 (16:34 +0800)
commite04ffbc017881047e2dbd1c1f531536ae8c8b579
tree2b13a9fb4e9f4609d6ca804e2c4c0f68ee95290d
parent4c5966a0c9b0a876a59448a37752ec0710d5c08a
CR_1831:crypto:starfive: Add fallback algo for crypto drivers

Add software fallback for RSA driver to support key sizes > 2Kb.
Add software fallback for Hash driver for smaller input data
blocksize to improve overall hash module efficiency.

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