Home
last modified time | relevance | path

Searched refs:raw_key (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/crypto/
Drsa.c271 struct rsa_key raw_key = {0}; in rsa_set_pub_key() local
277 ret = rsa_parse_pub_key(&raw_key, key, keylen); in rsa_set_pub_key()
281 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_pub_key()
285 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
305 struct rsa_key raw_key = {0}; in rsa_set_priv_key() local
311 ret = rsa_parse_priv_key(&raw_key, key, keylen); in rsa_set_priv_key()
315 mpi_key->d = mpi_read_raw_data(raw_key.d, raw_key.d_sz); in rsa_set_priv_key()
319 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_priv_key()
323 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
/linux-4.19.296/fs/crypto/
Dkeyinfo.c242 static int init_essiv_generator(struct fscrypt_info *ci, const u8 *raw_key, in init_essiv_generator() argument
255 err = derive_essiv_salt(raw_key, keysize, salt); in init_essiv_generator()
284 u8 *raw_key = NULL; in fscrypt_get_encryption_info() local
338 raw_key = kmalloc(mode->keysize, GFP_NOFS); in fscrypt_get_encryption_info()
339 if (!raw_key) in fscrypt_get_encryption_info()
342 res = find_and_derive_key(inode, &ctx, raw_key, mode->keysize); in fscrypt_get_encryption_info()
369 res = crypto_skcipher_setkey(ctfm, raw_key, mode->keysize); in fscrypt_get_encryption_info()
375 res = init_essiv_generator(crypt_info, raw_key, mode->keysize); in fscrypt_get_encryption_info()
389 kzfree(raw_key); in fscrypt_get_encryption_info()