The crypto algorithms are registered and available to the system before
the chip is actually powered on and the generic parameter for the DEU
behaviour set.
The issue can mainly be observed if the crypto manager tests are enabled
in the kernel config. The crypto manager test run directly after an
algorithm is registered.
Signed-off-by: Mathias Kresin <dev@kresin.me>
[fix commit title prefix]
Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
{
int ret = -ENOSYS;
+ aes_chip_init();
if ((ret = crypto_register_alg(&ifxdeu_aes_alg)))
goto aes_err;
if ((ret = crypto_register_alg(&ifxdeu_ctr_rfc3686_aes_alg)))
goto ctr_rfc3686_aes_err;
- aes_chip_init ();
-
CRTCL_SECT_INIT;
{
int ret = -ENOSYS;
+ des_chip_init();
ret = crypto_register_alg(&ifxdeu_des_alg);
if (ret < 0)
if (ret < 0)
goto cbc_des3_ede_err;
- des_chip_init();
CRTCL_SECT_INIT;