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

/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv_cache.h41 struct dhkey { struct
54 /* Bytes to allocate for struct dhkey holding key of specified length (bits) */
55 #define DHKEYALLOC(keylen) ALIGN4(sizeof (struct dhkey) + KEYLEN(keylen))
56 /* Bytes used for a struct dhkey (already allocated */
57 #define DHKEYSIZE(dhkey_ptr) ALIGN4(sizeof (struct dhkey) + \
/illumos-gate/usr/src/common/crypto/dh/
H A Ddh_impl.c128 DHkey dhkey; local
151 if ((brv = DH_key_init(&dhkey, bkey->prime_bits)) != BIG_OK) {
157 if ((brv = big_extend(&(dhkey.p), CHARLEN2BIGNUMLEN(prime_bytes))) !=
162 bytestring2bignum(&(dhkey.p), bkey->prime, prime_bytes);
165 if ((brv = big_extend(&(dhkey.g),
170 bytestring2bignum(&(dhkey.g), bkey->base, bkey->base_bytes);
173 if (big_cmp_abs(&(dhkey.g), &(dhkey.p)) >= 0) {
185 primebit_len = big_bitlength(&(dhkey.p));
196 if ((brv = big_extend(&(dhkey
256 DHkey dhkey; local
[all...]

Completed in 43 milliseconds