Add a struct akcipher_instance and struct akcipher_spawn similar to
how AEAD declares them and the macros for converting to/from
crypto_instance/crypto_spawn. Also add register functions to
avoid exposing crypto_akcipher_type.
Signed-off-by: Andrew Zaborowski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Don't #include crypto/public_key.h in akcipher as the contents of the
header aren't used and changes in a future patch cause it to fail to
compile if CONFIG_KEYS=n.
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Add Public Key Encryption API.
Signed-off-by: Tadeusz Struk <[email protected]>
Made CRYPTO_AKCIPHER invisible like other type config options.
Signed-off-by: Herbert Xu <[email protected]>