Home
last modified time | relevance | path

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

/titanic_44/usr/src/common/crypto/rsa/
H A Drsa_impl.c409 if (bkey->modulus_bits == 0) in rsa_genkey_pair()
417 modulus_bytes = CRYPTO_BITS2BYTES(bkey->modulus_bits); in rsa_genkey_pair()
501 if (bkey->modulus_bits == 0 || bkey->modulus == NULL || in rsa_encrypt()
506 modulus_bytes = CRYPTO_BITS2BYTES(bkey->modulus_bits); in rsa_encrypt()
568 if (bkey->modulus_bits == 0 || bkey->modulus == NULL || in rsa_decrypt()
577 modulus_bytes = CRYPTO_BITS2BYTES(bkey->modulus_bits); in rsa_decrypt()
H A Drsa_impl.h101 uint32_t modulus_bits; /* size */ member
/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObject.h82 CK_ULONG modulus_bits; member
279 ((o)->object_class_u.public_key->key_type_u.rsa_pub_key.modulus_bits)
281 ((k)->key_type_u.rsa_pub_key.modulus_bits)
H A DkernelAttributeUtil.c1020 CK_ULONG modulus_bits = 0; in kernel_build_public_key_object() local
1178 get_ulong_attr_from_template(&modulus_bits, in kernel_build_public_key_object()
1259 KEY_PUB_RSA_MOD_BITS(pbk) = modulus_bits; in kernel_build_public_key_object()
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftRSA.c74 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in soft_rsa_encrypt()
164 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in soft_rsa_decrypt()
877 k.modulus_bits = modulus_len; /* save modulus len in bits */ in soft_rsa_genkey_pair()
910 modulus, CRYPTO_BITS2BYTES(k.modulus_bits), B_TRUE)) != CKR_OK) { in soft_rsa_genkey_pair()
915 modulus, CRYPTO_BITS2BYTES(k.modulus_bits), B_FALSE)) != CKR_OK) { in soft_rsa_genkey_pair()
H A DsoftObject.h71 CK_ULONG modulus_bits; member
404 ((o)->object_class_u.public_key->key_type_u.rsa_pub_key.modulus_bits)
406 ((k)->key_type_u.rsa_pub_key.modulus_bits)
H A DsoftAttributeUtil.c1304 CK_ULONG modulus_bits = 0; local
1496 rv = get_ulong_attr_from_template(&modulus_bits,
1596 modulus_bits = big_bitlength(&n);
1597 KEY_PUB_RSA_MOD_BITS(pbk) = modulus_bits;
1630 KEY_PUB_RSA_MOD_BITS(pbk) = modulus_bits;
/titanic_44/usr/src/uts/common/crypto/io/
H A Drsa.c683 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in core_rsa_encrypt()
826 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in core_rsa_decrypt()