Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: a3b22b9f11d9fbc48b0291ea92259a5a810e9438 authored by Linus Torvalds on 18 February 2019, 02:46:40 UTC
Linux 5.0-rc7
Tip revision: a3b22b9
nitrox_algs.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();
}
back to top