Lines Matching refs:pub
47 public_key_free(cert->pub);
72 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL);
73 if (!cert->pub)
103 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL);
104 if (!cert->pub->key)
107 cert->pub->keylen = ctx->key_size;
109 cert->pub->params = kmemdup(ctx->params, ctx->params_size, GFP_KERNEL);
110 if (!cert->pub->params)
113 cert->pub->paramlen = ctx->params_size;
114 cert->pub->algo = ctx->key_algo;
505 ctx->cert->pub->pkey_algo = "rsa";
509 ctx->cert->pub->pkey_algo = "ecrdsa";
512 ctx->cert->pub->pkey_algo = "sm2";
520 ctx->cert->pub->pkey_algo = "sm2";
523 ctx->cert->pub->pkey_algo = "ecdsa-nist-p192";
526 ctx->cert->pub->pkey_algo = "ecdsa-nist-p256";
529 ctx->cert->pub->pkey_algo = "ecdsa-nist-p384";
602 ctx->cert->pub->key_eflags |= 1 << KEY_EFLAG_DIGITALSIG;
604 ctx->cert->pub->key_eflags |= 1 << KEY_EFLAG_KEYCERTSIGN;
606 ctx->cert->pub->key_eflags |= 1 << KEY_EFLAG_KEYCERTSIGN;
635 ctx->cert->pub->key_eflags |= 1 << KEY_EFLAG_CA;