Searched refs:raw_key (Results 1 – 3 of 3) sorted by relevance
/drivers/crypto/caam/ |
D | caampkc.c | 942 struct rsa_key raw_key = {NULL}; in caam_rsa_set_pub_key() local 949 ret = rsa_parse_pub_key(&raw_key, key, keylen); in caam_rsa_set_pub_key() 954 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL); in caam_rsa_set_pub_key() 964 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key() 968 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_pub_key() 973 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key() 974 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key() 983 struct rsa_key *raw_key) in caam_rsa_set_priv_key_form() argument 986 size_t p_sz = raw_key->p_sz; in caam_rsa_set_priv_key_form() 987 size_t q_sz = raw_key->q_sz; in caam_rsa_set_priv_key_form() [all …]
|
/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 130 struct rsa_key raw_key; in ccp_rsa_setkey() local 134 memset(&raw_key, 0, sizeof(raw_key)); in ccp_rsa_setkey() 138 ret = rsa_parse_priv_key(&raw_key, key, keylen); in ccp_rsa_setkey() 140 ret = rsa_parse_pub_key(&raw_key, key, keylen); in ccp_rsa_setkey() 145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey() 157 raw_key.e, raw_key.e_sz); in ccp_rsa_setkey() 165 raw_key.d, raw_key.d_sz); in ccp_rsa_setkey()
|
/drivers/md/ |
D | dm-default-key.c | 145 u8 raw_key[BLK_CRYPTO_MAX_ANY_KEY_SIZE]; in default_key_ctr() local 188 if (hex2bin(raw_key, argv[1], raw_key_size) != 0) { in default_key_ctr() 236 err = blk_crypto_init_key(&dkc->key, raw_key, raw_key_size, in default_key_ctr() 258 memzero_explicit(raw_key, sizeof(raw_key)); in default_key_ctr()
|