Home
last modified time | relevance | path

Searched refs:pub (Results 1 – 5 of 5) sorted by relevance

/crypto/asymmetric_keys/
Dpkcs8_parser.c21 struct public_key *pub; member
76 ctx->pub->pkey_algo = "rsa"; in pkcs8_note_algo()
100 struct public_key *pub; in pkcs8_parse() local
106 ctx.pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in pkcs8_parse()
107 if (!ctx.pub) in pkcs8_parse()
118 pub = ctx.pub; in pkcs8_parse()
119 pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); in pkcs8_parse()
120 if (!pub->key) in pkcs8_parse()
123 pub->keylen = ctx.key_size; in pkcs8_parse()
124 pub->key_is_private = true; in pkcs8_parse()
[all …]
Dx509_cert_parser.c49 public_key_free(cert->pub); in x509_free_certificate()
74 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
75 if (!cert->pub) in x509_cert_parse()
105 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL); in x509_cert_parse()
106 if (!cert->pub->key) in x509_cert_parse()
109 cert->pub->keylen = ctx->key_size; in x509_cert_parse()
111 cert->pub->params = kmemdup(ctx->params, ctx->params_size, GFP_KERNEL); in x509_cert_parse()
112 if (!cert->pub->params) in x509_cert_parse()
115 cert->pub->paramlen = ctx->params_size; in x509_cert_parse()
116 cert->pub->algo = ctx->key_algo; in x509_cert_parse()
[all …]
Dx509_public_key.c36 if (!cert->pub->pkey_algo) in x509_get_sig_params()
136 ret = public_key_verify_signature(cert->pub, cert->sig); in x509_check_for_self_signed()
181 pr_devel("Cert Key Algo: %s\n", cert->pub->pkey_algo); in x509_key_preparse()
184 cert->pub->id_type = "X509"; in x509_key_preparse()
230 prep->payload.data[asym_crypto] = cert->pub; in x509_key_preparse()
236 cert->pub = NULL; in x509_key_preparse()
Dx509_parser.h15 struct public_key *pub; /* Public key details */ member
Dpkcs7_verify.c294 ret = public_key_verify_signature(p->pub, x509->sig); in pkcs7_verify_sig_chain()
357 ret = public_key_verify_signature(sinfo->signer->pub, sinfo->sig); in pkcs7_verify_one()