Home
last modified time | relevance | path

Searched refs:l_bits (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Ddsa.c22 static TEE_Result get_keys_size(size_t size_bits, size_t *l_bits, in get_keys_size() argument
32 *l_bits = size_bits; in get_keys_size()
42 size_t l_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()
70 size_t l_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()
97 size_t l_bits = 0; in crypto_acipher_gen_dsa_key() local
106 ret = get_keys_size(key_size, &l_bits, &n_bits); in crypto_acipher_gen_dsa_key()
[all …]
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_dsa.c270 static TEE_Result do_allocate_keypair(struct dsa_keypair *key, size_t l_bits, in do_allocate_keypair() argument
273 DSA_TRACE("DSA allocate Keypair of L=%zu bits and N=%zu bits", l_bits, in do_allocate_keypair()
280 key->g = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
285 key->p = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
300 key->y = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
325 size_t l_bits, size_t n_bits) in do_allocate_publickey() argument
327 DSA_TRACE("DSA Allocate Public of L=%zu bits and N=%zu bits", l_bits, in do_allocate_publickey()
334 key->g = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
339 key->p = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
349 key->y = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
[all …]
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_acipher.h213 TEE_Result (*alloc_keypair)(struct dsa_keypair *key, size_t l_bits,
216 TEE_Result (*alloc_publickey)(struct dsa_public_key *key, size_t l_bits,
219 TEE_Result (*gen_keypair)(struct dsa_keypair *key, size_t l_bits,