Lines Matching refs:pub
47 public_key_free(cert->pub); in x509_free_certificate()
72 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
73 if (!cert->pub) in x509_cert_parse()
103 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL); in x509_cert_parse()
104 if (!cert->pub->key) in x509_cert_parse()
107 cert->pub->keylen = ctx->key_size; in x509_cert_parse()
109 cert->pub->params = kmemdup(ctx->params, ctx->params_size, GFP_KERNEL); in x509_cert_parse()
110 if (!cert->pub->params) in x509_cert_parse()
113 cert->pub->paramlen = ctx->params_size; in x509_cert_parse()
114 cert->pub->algo = ctx->key_algo; in x509_cert_parse()
505 ctx->cert->pub->pkey_algo = "rsa"; in x509_extract_key_data()
509 ctx->cert->pub->pkey_algo = "ecrdsa"; in x509_extract_key_data()
512 ctx->cert->pub->pkey_algo = "sm2"; in x509_extract_key_data()
520 ctx->cert->pub->pkey_algo = "sm2"; in x509_extract_key_data()
523 ctx->cert->pub->pkey_algo = "ecdsa-nist-p192"; in x509_extract_key_data()
526 ctx->cert->pub->pkey_algo = "ecdsa-nist-p256"; in x509_extract_key_data()
529 ctx->cert->pub->pkey_algo = "ecdsa-nist-p384"; in x509_extract_key_data()