Lines Matching refs:pubkey
521 u8 *pubkey)
534 pubkey, &pubkey_len) < 0)
538 os_memmove(pubkey + pad, pubkey, pubkey_len);
539 os_memset(pubkey, 0, pad);
549 const u8 *pubkey, size_t pubkey_len,
555 pub = BN_bin2bn(pubkey, pubkey_len, NULL);
566 /* verify: pubkey^q == 1 mod p */
580 res = crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len,
753 struct wpabuf *pubkey = NULL, *privkey = NULL;
780 pubkey = wpabuf_alloc(publen);
781 if (pubkey == NULL)
788 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen));
792 *publ = pubkey;
796 wpabuf_clear_free(pubkey);
802 struct wpabuf *pubkey = NULL, *privkey = NULL;
830 pubkey = wpabuf_alloc(publen);
831 if (!pubkey)
838 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen));
842 *publ = pubkey;
849 wpabuf_clear_free(pubkey);
1938 const EC_POINT *pubkey;
1947 pubkey = EC_KEY_get0_public_key(eckey);
1948 if (!pubkey)
1961 if (EC_POINT_get_affine_coordinates_GFp(ecdh->ec->group, pubkey,