Home
last modified time | relevance | path

Searched refs:CRYPTO_BYTES2BITS (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDSA.c152 k.prime_bits = CRYPTO_BYTES2BITS(plen); in local_dsa_sign()
154 k.subprime_bits = CRYPTO_BYTES2BITS(qlen); in local_dsa_sign()
157 k.private_x_bits = CRYPTO_BYTES2BITS(xlen); in local_dsa_sign()
202 k.prime_bits = CRYPTO_BYTES2BITS(plen); in local_dsa_verify()
204 k.subprime_bits = CRYPTO_BYTES2BITS(qlen); in local_dsa_verify()
207 k.public_y_bits = CRYPTO_BYTES2BITS(ylen); in local_dsa_verify()
505 k.prime_bits = CRYPTO_BYTES2BITS(prime_len); in soft_dsa_genkey_pair()
507 k.subprime_bits = CRYPTO_BYTES2BITS(subprime_len); in soft_dsa_genkey_pair()
515 k.public_y_bits = CRYPTO_BYTES2BITS(pubvalue_len); in soft_dsa_genkey_pair()
517 k.private_x_bits = CRYPTO_BYTES2BITS(privalue_len); in soft_dsa_genkey_pair()
H A DsoftDH.c149 k.prime_bits = CRYPTO_BYTES2BITS(prime_len); in soft_dh_genkey_pair()
233 k.prime_bits = CRYPTO_BYTES2BITS(privateprimelen); in soft_dh_key_derive()
234 k.value_bits = CRYPTO_BYTES2BITS(privatevaluelen); in soft_dh_key_derive()
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()
/titanic_41/usr/src/uts/common/crypto/io/
H A Dswrand.c364 entropy_bits -= CRYPTO_BYTES2BITS(bytes); in swrand_get_entropy()
365 BUMP_SWRAND_STATS(ss_entOut, CRYPTO_BYTES2BITS(bytes)); in swrand_get_entropy()
528 if (entropy_bits > CRYPTO_BYTES2BITS(RNDPOOLSIZE)) in swrand_mix_pool()
529 entropy_bits = CRYPTO_BYTES2BITS(RNDPOOLSIZE); in swrand_mix_pool()
601 i = CRYPTO_BYTES2BITS(MEMBLOCKSIZE); in physmem_ent_init()
675 if (entropy_bits + ent >= CRYPTO_BYTES2BITS(RNDPOOLSIZE)) { in physmem_ent_gen()
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()
H A Ddca.c186 CRYPTO_BYTES2BITS(DSA_MIN_KEY_LEN),
187 CRYPTO_BYTES2BITS(DSA_MAX_KEY_LEN),
198 CRYPTO_BYTES2BITS(RSA_MIN_KEY_LEN),
199 CRYPTO_BYTES2BITS(RSA_MAX_KEY_LEN),
208 CRYPTO_BYTES2BITS(RSA_MIN_KEY_LEN),
209 CRYPTO_BYTES2BITS(RSA_MAX_KEY_LEN),
H A Ddprov.c8849 len = CRYPTO_BYTES2BITS(len); in dprov_key_value_secret()
8910 len = CRYPTO_BYTES2BITS(len); in dprov_key_value_secret()
H A Dcrypto.c2375 (CRYPTO_BYTES2BITS(crypto_max_buffer_len))) { in copyin_key()
/titanic_41/usr/src/common/crypto/modes/
H A Dgcm.c304 htonll(CRYPTO_BYTES2BITS(ctx->gcm_processed_data_len)); in gcm_encrypt_final()
465 ctx->gcm_len_a_len_c[1] = htonll(CRYPTO_BYTES2BITS(pt_len)); in gcm_decrypt_final()
551 len_a_len_c[1] = htonll(CRYPTO_BYTES2BITS(iv_len)); in gcm_format_initial_blocks()
634 = htonll(CRYPTO_BYTES2BITS(gcm_param->ulAADLen)); in gcm_init_ctx()
669 = htonll(CRYPTO_BYTES2BITS(gmac_param->ulAADLen)); in gmac_init_ctx()
/titanic_41/usr/src/common/crypto/dsa/
H A Ddsa_impl.c238 bkey->public_y_bits = CRYPTO_BYTES2BITS(prime_bytes); in dsa_genkey_pair()
241 bkey->private_x_bits = CRYPTO_BYTES2BITS(DSA_SUBPRIME_BYTES); in dsa_genkey_pair()
/titanic_41/usr/src/common/crypto/rsa/
H A Drsa_impl.c580 if (RSA_key_init(&rsakey, CRYPTO_BYTES2BITS(bkey->prime2_bytes), in rsa_decrypt()
581 CRYPTO_BYTES2BITS(bkey->prime1_bytes)) != BIG_OK) { in rsa_decrypt()
/titanic_41/usr/src/uts/common/sys/crypto/
H A Dcommon.h392 #define CRYPTO_BYTES2BITS(n) ((n) << 3) macro
/titanic_41/usr/src/common/crypto/blowfish/
H A Dblowfish_impl.c561 uint_t bitsleft = CRYPTO_BYTES2BITS(dst_len_bytes); in bitrepeat()
/titanic_41/usr/src/uts/common/crypto/core/
H A Dkcf_callprov.c138 keylen = CRYPTO_BYTES2BITS(attr_len); in kcf_check_prov_mech_keylen()
147 keylen = CRYPTO_BYTES2BITS(attr_len); in kcf_check_prov_mech_keylen()