From 41eba5bd716bea47c8731d156d053afee92a7f12 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Mon, 15 Jan 2024 12:55:31 +0100 Subject: kernel: Remove key module from kernel library The key module's functionality is not used by the kernel library, but currently kernel users are still required to initialize the key module's `secp256k1_context_sign` global as part of the `kernel::Context` through `ECC_Start`. --- src/kernel/checks.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/kernel/checks.cpp') diff --git a/src/kernel/checks.cpp b/src/kernel/checks.cpp index 45a5e25093..e4a13ee4cc 100644 --- a/src/kernel/checks.cpp +++ b/src/kernel/checks.cpp @@ -4,8 +4,8 @@ #include -#include #include +#include #include #include @@ -14,10 +14,6 @@ namespace kernel { util::Result SanityChecks(const Context&) { - if (!ECC_InitSanityCheck()) { - return util::Error{Untranslated("Elliptic curve cryptography sanity check failure. Aborting.")}; - } - if (!Random_SanityCheck()) { return util::Error{Untranslated("OS cryptographic RNG sanity check failure. Aborting.")}; } -- cgit v1.2.3