Lines Matching refs:pub
49 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()
493 ctx->cert->pub->pkey_algo = "rsa"; in x509_extract_key_data()
497 ctx->cert->pub->pkey_algo = "ecrdsa"; in x509_extract_key_data()
505 ctx->cert->pub->pkey_algo = "sm2"; in x509_extract_key_data()
508 ctx->cert->pub->pkey_algo = "ecdsa-nist-p192"; in x509_extract_key_data()
511 ctx->cert->pub->pkey_algo = "ecdsa-nist-p256"; in x509_extract_key_data()
514 ctx->cert->pub->pkey_algo = "ecdsa-nist-p384"; in x509_extract_key_data()