rsa_key           160 crypto/rsa.c   	struct rsa_key raw_key = {0};
rsa_key           194 crypto/rsa.c   	struct rsa_key raw_key = {0};
rsa_key            19 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key            49 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key            64 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key            79 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key            94 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key           109 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key           124 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key           139 crypto/rsa_helper.c 	struct rsa_key *key = context;
rsa_key           162 crypto/rsa_helper.c int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key,
rsa_key           165 crypto/rsa_helper.c 	return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len);
rsa_key           181 crypto/rsa_helper.c int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,
rsa_key           184 crypto/rsa_helper.c 	return asn1_ber_decoder(&rsaprivkey_decoder, rsa_key, key, key_len);
rsa_key           873 drivers/crypto/caam/caampkc.c 	struct rsa_key raw_key = {NULL};
rsa_key           874 drivers/crypto/caam/caampkc.c 	struct caam_rsa_key *rsa_key = &ctx->key;
rsa_key           878 drivers/crypto/caam/caampkc.c 	caam_rsa_free_key(rsa_key);
rsa_key           885 drivers/crypto/caam/caampkc.c 	rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
rsa_key           886 drivers/crypto/caam/caampkc.c 	if (!rsa_key->e)
rsa_key           895 drivers/crypto/caam/caampkc.c 	rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz);
rsa_key           896 drivers/crypto/caam/caampkc.c 	if (!rsa_key->n)
rsa_key           900 drivers/crypto/caam/caampkc.c 		caam_rsa_free_key(rsa_key);
rsa_key           904 drivers/crypto/caam/caampkc.c 	rsa_key->e_sz = raw_key.e_sz;
rsa_key           905 drivers/crypto/caam/caampkc.c 	rsa_key->n_sz = raw_key.n_sz;
rsa_key           909 drivers/crypto/caam/caampkc.c 	caam_rsa_free_key(rsa_key);
rsa_key           914 drivers/crypto/caam/caampkc.c 				       struct rsa_key *raw_key)
rsa_key           916 drivers/crypto/caam/caampkc.c 	struct caam_rsa_key *rsa_key = &ctx->key;
rsa_key           920 drivers/crypto/caam/caampkc.c 	rsa_key->p = caam_read_raw_data(raw_key->p, &p_sz);
rsa_key           921 drivers/crypto/caam/caampkc.c 	if (!rsa_key->p)
rsa_key           923 drivers/crypto/caam/caampkc.c 	rsa_key->p_sz = p_sz;
rsa_key           925 drivers/crypto/caam/caampkc.c 	rsa_key->q = caam_read_raw_data(raw_key->q, &q_sz);
rsa_key           926 drivers/crypto/caam/caampkc.c 	if (!rsa_key->q)
rsa_key           928 drivers/crypto/caam/caampkc.c 	rsa_key->q_sz = q_sz;
rsa_key           930 drivers/crypto/caam/caampkc.c 	rsa_key->tmp1 = kzalloc(raw_key->p_sz, GFP_DMA | GFP_KERNEL);
rsa_key           931 drivers/crypto/caam/caampkc.c 	if (!rsa_key->tmp1)
rsa_key           934 drivers/crypto/caam/caampkc.c 	rsa_key->tmp2 = kzalloc(raw_key->q_sz, GFP_DMA | GFP_KERNEL);
rsa_key           935 drivers/crypto/caam/caampkc.c 	if (!rsa_key->tmp2)
rsa_key           938 drivers/crypto/caam/caampkc.c 	rsa_key->priv_form = FORM2;
rsa_key           940 drivers/crypto/caam/caampkc.c 	rsa_key->dp = caam_read_rsa_crt(raw_key->dp, raw_key->dp_sz, p_sz);
rsa_key           941 drivers/crypto/caam/caampkc.c 	if (!rsa_key->dp)
rsa_key           944 drivers/crypto/caam/caampkc.c 	rsa_key->dq = caam_read_rsa_crt(raw_key->dq, raw_key->dq_sz, q_sz);
rsa_key           945 drivers/crypto/caam/caampkc.c 	if (!rsa_key->dq)
rsa_key           948 drivers/crypto/caam/caampkc.c 	rsa_key->qinv = caam_read_rsa_crt(raw_key->qinv, raw_key->qinv_sz,
rsa_key           950 drivers/crypto/caam/caampkc.c 	if (!rsa_key->qinv)
rsa_key           953 drivers/crypto/caam/caampkc.c 	rsa_key->priv_form = FORM3;
rsa_key           958 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->dq);
rsa_key           960 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->dp);
rsa_key           962 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->tmp2);
rsa_key           964 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->tmp1);
rsa_key           966 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->q);
rsa_key           968 drivers/crypto/caam/caampkc.c 	kzfree(rsa_key->p);
rsa_key           975 drivers/crypto/caam/caampkc.c 	struct rsa_key raw_key = {NULL};
rsa_key           976 drivers/crypto/caam/caampkc.c 	struct caam_rsa_key *rsa_key = &ctx->key;
rsa_key           980 drivers/crypto/caam/caampkc.c 	caam_rsa_free_key(rsa_key);
rsa_key           987 drivers/crypto/caam/caampkc.c 	rsa_key->d = kmemdup(raw_key.d, raw_key.d_sz, GFP_DMA | GFP_KERNEL);
rsa_key           988 drivers/crypto/caam/caampkc.c 	if (!rsa_key->d)
rsa_key           991 drivers/crypto/caam/caampkc.c 	rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
rsa_key           992 drivers/crypto/caam/caampkc.c 	if (!rsa_key->e)
rsa_key          1001 drivers/crypto/caam/caampkc.c 	rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz);
rsa_key          1002 drivers/crypto/caam/caampkc.c 	if (!rsa_key->n)
rsa_key          1006 drivers/crypto/caam/caampkc.c 		caam_rsa_free_key(rsa_key);
rsa_key          1010 drivers/crypto/caam/caampkc.c 	rsa_key->d_sz = raw_key.d_sz;
rsa_key          1011 drivers/crypto/caam/caampkc.c 	rsa_key->e_sz = raw_key.e_sz;
rsa_key          1012 drivers/crypto/caam/caampkc.c 	rsa_key->n_sz = raw_key.n_sz;
rsa_key          1019 drivers/crypto/caam/caampkc.c 	caam_rsa_free_key(rsa_key);
rsa_key           130 drivers/crypto/ccp/ccp-crypto-rsa.c 	struct rsa_key raw_key;
rsa_key          1066 drivers/crypto/qat/qat_common/qat_asym_algs.c static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key)
rsa_key          1075 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ptr = rsa_key->p;
rsa_key          1076 drivers/crypto/qat/qat_common/qat_asym_algs.c 	len = rsa_key->p_sz;
rsa_key          1086 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ptr = rsa_key->q;
rsa_key          1087 drivers/crypto/qat/qat_common/qat_asym_algs.c 	len = rsa_key->q_sz;
rsa_key          1097 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ptr = rsa_key->dp;
rsa_key          1098 drivers/crypto/qat/qat_common/qat_asym_algs.c 	len = rsa_key->dp_sz;
rsa_key          1109 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ptr = rsa_key->dq;
rsa_key          1110 drivers/crypto/qat/qat_common/qat_asym_algs.c 	len = rsa_key->dq_sz;
rsa_key          1121 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ptr = rsa_key->qinv;
rsa_key          1122 drivers/crypto/qat/qat_common/qat_asym_algs.c 	len = rsa_key->qinv_sz;
rsa_key          1206 drivers/crypto/qat/qat_common/qat_asym_algs.c 	struct rsa_key rsa_key;
rsa_key          1212 drivers/crypto/qat/qat_common/qat_asym_algs.c 		ret = rsa_parse_priv_key(&rsa_key, key, keylen);
rsa_key          1214 drivers/crypto/qat/qat_common/qat_asym_algs.c 		ret = rsa_parse_pub_key(&rsa_key, key, keylen);
rsa_key          1218 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz);
rsa_key          1221 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ret = qat_rsa_set_e(ctx, rsa_key.e, rsa_key.e_sz);
rsa_key          1225 drivers/crypto/qat/qat_common/qat_asym_algs.c 		ret = qat_rsa_set_d(ctx, rsa_key.d, rsa_key.d_sz);
rsa_key          1228 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_rsa_setkey_crt(ctx, &rsa_key);
rsa_key            50 include/crypto/internal/rsa.h int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key,
rsa_key            53 include/crypto/internal/rsa.h int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,