forked from Minki/linux
c9613335bf
Added support to offload AEAD ciphers to NITROX. Currently supported AEAD cipher is 'gcm(aes)'. Signed-off-by: Nagadheeraj Rottela <rnagadheeraj@marvell.com> Reviewed-by: Srikanth Jampala <jsrikanth@marvell.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
25 lines
344 B
C
25 lines
344 B
C
#include "nitrox_common.h"
|
|
|
|
int nitrox_crypto_register(void)
|
|
{
|
|
int err;
|
|
|
|
err = nitrox_register_skciphers();
|
|
if (err)
|
|
return err;
|
|
|
|
err = nitrox_register_aeads();
|
|
if (err) {
|
|
nitrox_unregister_skciphers();
|
|
return err;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
void nitrox_crypto_unregister(void)
|
|
{
|
|
nitrox_unregister_aeads();
|
|
nitrox_unregister_skciphers();
|
|
}
|