Lines Matching refs:pub
49 public_key_free(cert->pub);
74 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL);
75 if (!cert->pub)
105 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL);
106 if (!cert->pub->key)
109 cert->pub->keylen = ctx->key_size;
111 cert->pub->params = kmemdup(ctx->params, ctx->params_size, GFP_KERNEL);
112 if (!cert->pub->params)
115 cert->pub->paramlen = ctx->params_size;
116 cert->pub->algo = ctx->key_algo;
493 ctx->cert->pub->pkey_algo = "rsa";
497 ctx->cert->pub->pkey_algo = "ecrdsa";
505 ctx->cert->pub->pkey_algo = "sm2";
508 ctx->cert->pub->pkey_algo = "ecdsa-nist-p192";
511 ctx->cert->pub->pkey_algo = "ecdsa-nist-p256";
514 ctx->cert->pub->pkey_algo = "ecdsa-nist-p384";