Lines Matching refs:key
22 struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len)
25 crypto_rsa_import_public_key(key, len);
29 struct crypto_private_key * crypto_private_key_import(const u8 *key,
36 res = pkcs8_key_import(key, len);
42 res = pkcs8_enc_key_import(key, len, passwd);
47 /* Not PKCS#8, so try to import PKCS #1 encoded RSA private key */
49 "key");
51 crypto_rsa_import_private_key(key, len);
63 int crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key,
67 return pkcs1_encrypt(2, (struct crypto_rsa_key *) key,
72 int crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key,
76 return pkcs1_v15_private_key_decrypt((struct crypto_rsa_key *) key,
81 int crypto_private_key_sign_pkcs1(struct crypto_private_key *key,
85 return pkcs1_encrypt(1, (struct crypto_rsa_key *) key,
90 void crypto_public_key_free(struct crypto_public_key *key)
92 crypto_rsa_free((struct crypto_rsa_key *) key);
96 void crypto_private_key_free(struct crypto_private_key *key)
98 crypto_rsa_free((struct crypto_rsa_key *) key);
102 int crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key,
106 return pkcs1_decrypt_public_key((struct crypto_rsa_key *) key,