Home
last modified time | relevance | path

Searched refs:n_bits (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Ddsa.c23 size_t *n_bits) in get_keys_size() argument
26 *n_bits = 160; in get_keys_size()
28 *n_bits = 256; in get_keys_size()
43 size_t n_bits = 0; in crypto_acipher_alloc_dsa_keypair() local
51 ret = get_keys_size(size_bits, &l_bits, &n_bits); in crypto_acipher_alloc_dsa_keypair()
55 ret = dsa->alloc_keypair(key, l_bits, n_bits); in crypto_acipher_alloc_dsa_keypair()
71 size_t n_bits = 0; in crypto_acipher_alloc_dsa_public_key() local
79 ret = get_keys_size(size_bits, &l_bits, &n_bits); in crypto_acipher_alloc_dsa_public_key()
83 ret = dsa->alloc_publickey(key, l_bits, n_bits); in crypto_acipher_alloc_dsa_public_key()
98 size_t n_bits = 0; in crypto_acipher_gen_dsa_key() local
[all …]
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_acipher.h214 size_t n_bits);
217 size_t n_bits);
220 size_t n_bits);
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_dsa.c271 size_t n_bits) in do_allocate_keypair() argument
274 n_bits); in do_allocate_keypair()
290 key->q = crypto_bignum_allocate(n_bits); in do_allocate_keypair()
325 size_t l_bits, size_t n_bits) in do_allocate_publickey() argument
328 n_bits); in do_allocate_publickey()
344 key->q = crypto_bignum_allocate(n_bits); in do_allocate_publickey()
375 size_t n_bits) in do_gen_keypair() argument
384 size_t n_bytes = n_bits / 8; in do_gen_keypair()
388 n_bits, l_bits); in do_gen_keypair()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum_core.c645 size_t n_bits = mbedtls_mpi_core_bitlen(N, limbs); in mbedtls_mpi_core_random() local
646 size_t n_bytes = (n_bits + 7) / 8; in mbedtls_mpi_core_random()
680 mbedtls_mpi_core_shift_r(X, limbs, 8 * n_bytes - n_bits); in mbedtls_mpi_core_random()