Lines Matching refs:pkey
175 static struct wpabuf * dpp_get_pubkey_point(struct crypto_key *pkey, int prefix) in dpp_get_pubkey_point() argument
181 len = crypto_ec_get_publickey_buf(pkey, pos, 0); in dpp_get_pubkey_point()
195 res = crypto_ec_get_publickey_buf(pkey, pos, len); in dpp_get_pubkey_point()
218 struct crypto_key *pkey = NULL; in dpp_set_pubkey_point() local
225 pkey = crypto_ec_set_pubkey_point(group, buf, in dpp_set_pubkey_point()
230 return pkey; in dpp_set_pubkey_point()
514 struct crypto_key *pkey; in dpp_parse_uri_pk() local
559 pkey = crypto_ec_parse_subpub_key((unsigned char *)p, data_len); in dpp_parse_uri_pk()
562 if (!pkey) { in dpp_parse_uri_pk()
568 if (!crypto_is_ec_key(pkey)) { in dpp_parse_uri_pk()
571 crypto_ec_free_key(pkey); in dpp_parse_uri_pk()
575 group = crypto_ec_get_group_from_key(pkey); in dpp_parse_uri_pk()
587 bi->pubkey = pkey; in dpp_parse_uri_pk()
590 crypto_ec_free_key(pkey); in dpp_parse_uri_pk()
701 struct crypto_key *pkey = crypto_ec_get_key(privkey, privkey_len); in dpp_set_keypair() local
704 if (!pkey) { in dpp_set_keypair()
708 group = crypto_ec_get_group_from_key(pkey); in dpp_set_keypair()
718 crypto_ec_free_key(pkey); in dpp_set_keypair()
722 return pkey; in dpp_set_keypair()
4675 struct crypto_key *pkey = NULL; in dpp_parse_jwk() local
4739 pkey = crypto_ec_set_pubkey_point(group, a, len); in dpp_parse_jwk()
4749 return pkey; in dpp_parse_jwk()