Lines Matching refs:pub_key
997 publen = BN_num_bytes(dh->pub_key); in dh5_init()
1006 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); in dh5_init()
1074 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dh5_init()
1097 DH_get0_key(dh, &pub_key, &priv_key); in dh5_init()
1098 publen = BN_num_bytes(pub_key); in dh5_init()
1107 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen)); in dh5_init()
1147 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed()
1148 if (dh->pub_key == NULL) in dh5_init_fixed()
1163 BIGNUM *priv_key, *pub_key; in dh5_init_fixed()
1168 pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed()
1170 if (!fctx || !priv_key || !pub_key || !bld || in dh5_init_fixed()
1176 pub_key) != 1 || in dh5_init_fixed()
1187 BN_free(pub_key); in dh5_init_fixed()
1194 BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL; in dh5_init_fixed()
1209 pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed()
1210 if (!priv_key || !pub_key || DH_set0_key(dh, pub_key, priv_key) != 1) in dh5_init_fixed()
1212 pub_key = NULL; in dh5_init_fixed()
1223 BN_free(pub_key); in dh5_init_fixed()
1264 BIGNUM *pub_key; in dh5_derive_shared()
1273 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh5_derive_shared()
1275 if (pub_key == NULL) in dh5_derive_shared()
1283 keylen = DH_compute_key(wpabuf_mhead(res), pub_key, dh); in dh5_derive_shared()
1287 BN_clear_free(pub_key); in dh5_derive_shared()
1292 BN_clear_free(pub_key); in dh5_derive_shared()
3499 ASN1_BIT_STRING *pub_key; member
3504 ASN1_SIMPLE(EC_COMP_PUBKEY, pub_key, ASN1_BIT_STRING)
3602 OPENSSL_free(pubkey->pub_key->data); in crypto_ec_key_get_subject_public_key()
3603 pubkey->pub_key->data = der; in crypto_ec_key_get_subject_public_key()
3605 pubkey->pub_key->length = len; in crypto_ec_key_get_subject_public_key()
3607 pubkey->pub_key->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in crypto_ec_key_get_subject_public_key()
3608 pubkey->pub_key->flags |= ASN1_STRING_FLAG_BITS_LEFT; in crypto_ec_key_get_subject_public_key()