Searched refs:modulus_bits (Results 1 – 8 of 8) sorted by relevance
409 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()
101 uint32_t modulus_bits; /* size */ member
82 CK_ULONG modulus_bits; member279 ((o)->object_class_u.public_key->key_type_u.rsa_pub_key.modulus_bits)281 ((k)->key_type_u.rsa_pub_key.modulus_bits)
1020 CK_ULONG modulus_bits = 0; in kernel_build_public_key_object() local1178 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()
74 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()
71 CK_ULONG modulus_bits; member404 ((o)->object_class_u.public_key->key_type_u.rsa_pub_key.modulus_bits)406 ((k)->key_type_u.rsa_pub_key.modulus_bits)
1304 CK_ULONG modulus_bits = 0; local1496 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;
683 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in core_rsa_encrypt()826 k.modulus_bits = CRYPTO_BYTES2BITS(modulus_len); in core_rsa_decrypt()