How to import an ECDSA to the kernel crypto API: crypto_akcipher_set_pub_key always returns error?
I’m working on a kernel module which uses asymmetric cipher of kernel crypto api, kernel version 6.5.0. I generate asymmetric key pairs by openssl, convert them into DER format and import it into the kernel module with crypto_akcipher_set_pub_key and crypto_akcipher_set_priv_key. However, crypto_akcipher_set_priv_key always returns the error number: -38 (0xffffffda).