Lines Matching refs:pub
61 public_key_free(cert->pub); in x509_free_certificate()
86 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
87 if (!cert->pub) in x509_cert_parse()
117 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL); in x509_cert_parse()
118 if (!cert->pub->key) in x509_cert_parse()
121 cert->pub->keylen = ctx->key_size; in x509_cert_parse()
123 cert->pub->params = kmemdup(ctx->params, ctx->params_size, GFP_KERNEL); in x509_cert_parse()
124 if (!cert->pub->params) in x509_cert_parse()
127 cert->pub->paramlen = ctx->params_size; in x509_cert_parse()
128 cert->pub->algo = ctx->key_algo; in x509_cert_parse()
467 ctx->cert->pub->pkey_algo = "rsa"; in x509_extract_key_data()
470 ctx->cert->pub->pkey_algo = "ecrdsa"; in x509_extract_key_data()