Searched defs:prime_bytes (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/common/crypto/dh/
H A Ddh_impl.c130 uint32_t prime_bytes; local
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; local
276 prime_bytes
[all...]
/illumos-gate/usr/src/common/crypto/dsa/
H A Ddsa_impl.c171 uint32_t prime_bytes; local
174 prime_bytes = CRYPTO_BITS2BYTES(bkey->prime_bits);
176 if ((prime_bytes < MIN_DSA_KEY_LEN) ||
177 (prime_bytes > MAX_DSA_KEY_LEN)) {
183 * and thus that prime_bytes must be a multiple of 8.
207 CHARLEN2BIGNUMLEN(prime_bytes))) != BIG_OK) {
211 bytestring2bignum(&(dsakey.p), bkey->prime, prime_bytes);
238 bkey->public_y_bits = CRYPTO_BYTES2BITS(prime_bytes);
239 bignum2bytestring(bkey->public_y, &(dsakey.y), prime_bytes);
260 uint32_t prime_bytes; local
427 uint32_t prime_bytes; local
[all...]

Completed in 58 milliseconds