Lines Matching refs:pub
21 struct public_key *pub; member
76 ctx->pub->pkey_algo = "rsa"; in pkcs8_note_algo()
100 struct public_key *pub; in pkcs8_parse() local
106 ctx.pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in pkcs8_parse()
107 if (!ctx.pub) in pkcs8_parse()
118 pub = ctx.pub; in pkcs8_parse()
119 pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); in pkcs8_parse()
120 if (!pub->key) in pkcs8_parse()
123 pub->keylen = ctx.key_size; in pkcs8_parse()
124 pub->key_is_private = true; in pkcs8_parse()
125 return pub; in pkcs8_parse()
128 kfree(ctx.pub); in pkcs8_parse()
138 struct public_key *pub; in pkcs8_key_preparse() local
140 pub = pkcs8_parse(prep->data, prep->datalen); in pkcs8_key_preparse()
141 if (IS_ERR(pub)) in pkcs8_key_preparse()
142 return PTR_ERR(pub); in pkcs8_key_preparse()
144 pr_devel("Cert Key Algo: %s\n", pub->pkey_algo); in pkcs8_key_preparse()
145 pub->id_type = "PKCS8"; in pkcs8_key_preparse()
151 prep->payload.data[asym_crypto] = pub; in pkcs8_key_preparse()