nitrox_algs.c (344B)
1#include "nitrox_common.h" 2 3int nitrox_crypto_register(void) 4{ 5 int err; 6 7 err = nitrox_register_skciphers(); 8 if (err) 9 return err; 10 11 err = nitrox_register_aeads(); 12 if (err) { 13 nitrox_unregister_skciphers(); 14 return err; 15 } 16 17 return 0; 18} 19 20void nitrox_crypto_unregister(void) 21{ 22 nitrox_unregister_aeads(); 23 nitrox_unregister_skciphers(); 24}