Home
last modified time | relevance | path

Searched refs:pub_sz (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_wolfssl.c937 word32 priv_sz, pub_sz; in dh5_init() local
963 priv_sz = pub_sz = RFC3526_LEN; in dh5_init()
965 wpabuf_mhead(pubkey), &pub_sz) != 0) in dh5_init()
969 wpabuf_put(pubkey, pub_sz); in dh5_init()
1079 word32 priv_sz, pub_sz; in crypto_dh_init() local
1097 priv_sz = pub_sz = prime_len; in crypto_dh_init()
1098 if (wc_DhGenerateKeyPair(dh, &rng, privkey, &priv_sz, pubkey, &pub_sz) in crypto_dh_init()
1109 if (pub_sz < prime_len) { in crypto_dh_init()
1110 size_t pad_sz = prime_len - pub_sz; in crypto_dh_init()
1112 os_memmove(pubkey + pad_sz, pubkey, pub_sz); in crypto_dh_init()