hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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();
}