Home
last modified time | relevance | path

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

/titanic_41/usr/src/common/crypto/dh/
H A Ddh_impl.c128 DHkey dhkey; in dh_genkey_pair() local
151 if ((brv = DH_key_init(&dhkey, bkey->prime_bits)) != BIG_OK) { in dh_genkey_pair()
157 if ((brv = big_extend(&(dhkey.p), CHARLEN2BIGNUMLEN(prime_bytes))) != in dh_genkey_pair()
162 bytestring2bignum(&(dhkey.p), bkey->prime, prime_bytes); in dh_genkey_pair()
165 if ((brv = big_extend(&(dhkey.g), in dh_genkey_pair()
170 bytestring2bignum(&(dhkey.g), bkey->base, bkey->base_bytes); in dh_genkey_pair()
173 if (big_cmp_abs(&(dhkey.g), &(dhkey.p)) >= 0) { in dh_genkey_pair()
185 primebit_len = big_bitlength(&(dhkey.p)); in dh_genkey_pair()
196 if ((brv = big_extend(&(dhkey.x), BITLEN2BIGNUMLEN(bkey->value_bits))) in dh_genkey_pair()
202 if ((brv = big_extend(&(dhkey.y), CHARLEN2BIGNUMLEN(prime_bytes))) in dh_genkey_pair()
[all …]
/titanic_41/usr/src/cmd/keyserv/
H A Dkeyserv_cache.h41 struct dhkey { struct
55 #define DHKEYALLOC(keylen) ALIGN4(sizeof (struct dhkey) + KEYLEN(keylen))
57 #define DHKEYSIZE(dhkey_ptr) ALIGN4(sizeof (struct dhkey) + \
H A Dkeyserv_cache.c58 struct dhkey secret;
67 struct dhkey public;
135 uid_t, struct dhkey *);
137 static struct dhkey *keybuf3_2_dhkey(keybuf3 *);
800 find_cache_item(struct cachekey_header **ch, uid_t uid, struct dhkey *public) in find_cache_item()
865 struct dhkey *pk; in cache_insert_ch()
866 struct dhkey *sk; in cache_insert_ch()
997 struct dhkey *pk = 0; in cache_retrieve_ch()
1046 struct dhkey *pk = 0; in cache_remove_ch()
1280 static struct dhkey *
[all …]