Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c96 uint32_t value_bits; in soft_dh_genkey_pair() local
126 value_bits = (uint32_t)(*((CK_ULONG *)(template.pValue))); in soft_dh_genkey_pair()
128 value_bits = *((CK_ULONG *)(template.pValue)); in soft_dh_genkey_pair()
152 k.value_bits = value_bits; in soft_dh_genkey_pair()
176 CRYPTO_BITS2BYTES(k.value_bits), B_FALSE)) != CKR_OK) { in soft_dh_genkey_pair()
193 OBJ_PRI_DH_VAL_BITS(prikey) = k.value_bits; in soft_dh_genkey_pair()
234 k.value_bits = CRYPTO_BYTES2BITS(privatevaluelen); in soft_dh_key_derive()
H A DsoftObject.h164 CK_ULONG value_bits; member
565 ((o)->object_class_u.private_key->key_type_u.dh_pri_key.value_bits)
567 ((k)->key_type_u.dh_pri_key.value_bits)
H A DsoftAttributeUtil.c1858 CK_ULONG value_bits = 0; local
2133 rv = get_ulong_attr_from_template(&value_bits,
2357 value_bits : 0;
/illumos-gate/usr/src/common/crypto/dh/
H A Ddh_impl.c187 if (bkey->value_bits == 0) in dh_genkey_pair()
188 bkey->value_bits = primebit_len; in dh_genkey_pair()
190 if (bkey->value_bits > primebit_len) { in dh_genkey_pair()
196 if ((brv = big_extend(&(dhkey.x), BITLEN2BIGNUMLEN(bkey->value_bits))) in dh_genkey_pair()
221 if ((brv = big_random(&(dhkey.x), bkey->value_bits, rf)) != BIG_OK) { in dh_genkey_pair()
237 CRYPTO_BITS2BYTES(bkey->value_bits)); in dh_genkey_pair()
268 bkey->value_bits == 0 || bkey->private_x == NULL || in dh_key_derive()
277 value_bytes = CRYPTO_BITS2BYTES(bkey->value_bits); in dh_key_derive()
H A Ddh_impl.h83 uint32_t value_bits; /* for both x and y */ member
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObject.h160 CK_ULONG value_bits; member
415 ((o)->object_class_u.private_key->key_type_u.dh_pri_key.value_bits)
417 ((k)->key_type_u.dh_pri_key.value_bits)
H A DkernelAttributeUtil.c1386 CK_ULONG value_bits = 0; in kernel_build_private_key_object() local
1628 get_ulong_attr_from_template(&value_bits, in kernel_build_private_key_object()
1763 KEY_PRI_DH_VAL_BITS(pvk) = (isValueBits) ? value_bits : 0; in kernel_build_private_key_object()
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-mgmt.c577 int value_bits, u32 *value) in xge_hal_mgmt_pcireg_read() argument
585 if (offset > sizeof(xge_hal_pci_config_t)-value_bits/8) { in xge_hal_mgmt_pcireg_read()
589 if (value_bits == 8) { in xge_hal_mgmt_pcireg_read()
591 } else if (value_bits == 16) { in xge_hal_mgmt_pcireg_read()
594 } else if (value_bits == 32) { in xge_hal_mgmt_pcireg_read()