Lines Matching defs:prime_bytes
130 uint32_t prime_bytes;
140 prime_bytes = CRYPTO_BITS2BYTES(bkey->prime_bits);
142 if ((prime_bytes < MIN_DH_KEYLENGTH_IN_BYTES) ||
143 (prime_bytes > MAX_DH_KEYLENGTH_IN_BYTES)) {
157 if ((brv = big_extend(&(dhkey.p), CHARLEN2BIGNUMLEN(prime_bytes))) !=
162 bytestring2bignum(&(dhkey.p), bkey->prime, prime_bytes);
202 if ((brv = big_extend(&(dhkey.y), CHARLEN2BIGNUMLEN(prime_bytes)))
238 bignum2bytestring(bkey->public_y, &(dhkey.y), prime_bytes);
259 uint32_t prime_bytes;
276 prime_bytes = CRYPTO_BITS2BYTES(bkey->prime_bits);
289 if ((brv = big_extend(&(dhkey.p), CHARLEN2BIGNUMLEN(prime_bytes))) !=
294 bytestring2bignum(&(dhkey.p), bkey->prime, prime_bytes);
305 if ((brv = big_extend(&(dhkey.y), CHARLEN2BIGNUMLEN(prime_bytes))) !=
310 bytestring2bignum(&(dhkey.y), bkey->public_y, prime_bytes);
316 if ((brv = big_extend(&(dhkey.g), CHARLEN2BIGNUMLEN(prime_bytes))) !=
328 s_alloc = P2ROUNDUP_TYPED(prime_bytes, sizeof (BIG_CHUNK_TYPE), size_t);