Home
last modified time | relevance | path

Searched refs:crypto_bignum_allocate (Results 1 – 18 of 18) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Ddh.c21 s->g = crypto_bignum_allocate(key_size_bits); in crypto_acipher_alloc_dh_keypair()
24 s->p = crypto_bignum_allocate(key_size_bits); in crypto_acipher_alloc_dh_keypair()
27 s->y = crypto_bignum_allocate(key_size_bits); in crypto_acipher_alloc_dh_keypair()
30 s->x = crypto_bignum_allocate(key_size_bits); in crypto_acipher_alloc_dh_keypair()
33 s->q = crypto_bignum_allocate(key_size_bits); in crypto_acipher_alloc_dh_keypair()
H A Drsa.c200 s->e = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
203 s->d = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
206 s->n = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
209 s->p = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
212 s->q = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
215 s->qp = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
218 s->dp = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
221 s->dq = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_keypair()
239 s->e = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_public_key()
242 s->n = crypto_bignum_allocate(key_size_bits); in sw_crypto_acipher_alloc_rsa_public_key()
H A Decc.c435 s->d = crypto_bignum_allocate(key_size_bits); in crypto_asym_alloc_ecc_keypair()
438 s->x = crypto_bignum_allocate(key_size_bits); in crypto_asym_alloc_ecc_keypair()
441 s->y = crypto_bignum_allocate(key_size_bits); in crypto_asym_alloc_ecc_keypair()
535 s->x = crypto_bignum_allocate(key_size_bits); in crypto_asym_alloc_ecc_public_key()
538 s->y = crypto_bignum_allocate(key_size_bits); in crypto_asym_alloc_ecc_public_key()
H A Dbignum.c71 struct bignum *crypto_bignum_allocate(size_t size_bits) in crypto_bignum_allocate() function
/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_dh.c29 key->g = crypto_bignum_allocate(size_bits); in hpre_dh_alloc_keypair()
33 key->p = crypto_bignum_allocate(size_bits); in hpre_dh_alloc_keypair()
37 key->x = crypto_bignum_allocate(size_bits); in hpre_dh_alloc_keypair()
41 key->y = crypto_bignum_allocate(size_bits); in hpre_dh_alloc_keypair()
46 key->q = crypto_bignum_allocate(size_bits); in hpre_dh_alloc_keypair()
H A Dhpre_ecc.c621 key->d = crypto_bignum_allocate(size_bits); in hpre_ecc_alloc_keypair()
625 key->x = crypto_bignum_allocate(size_bits); in hpre_ecc_alloc_keypair()
629 key->y = crypto_bignum_allocate(size_bits); in hpre_ecc_alloc_keypair()
656 key->x = crypto_bignum_allocate(size_bits); in hpre_ecc_alloc_publickey()
660 key->y = crypto_bignum_allocate(size_bits); in hpre_ecc_alloc_publickey()
1193 rand_k = crypto_bignum_allocate(curve->key_bits); in hpre_ecc_sign()
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_dsa.c280 key->g = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
285 key->p = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
290 key->q = crypto_bignum_allocate(n_bits); in do_allocate_keypair()
295 key->x = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
300 key->y = crypto_bignum_allocate(l_bits); in do_allocate_keypair()
334 key->g = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
339 key->p = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
344 key->q = crypto_bignum_allocate(n_bits); in do_allocate_publickey()
349 key->y = crypto_bignum_allocate(l_bits); in do_allocate_publickey()
H A Dcaam_dh.c169 key->g = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
174 key->p = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
179 key->x = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
184 key->y = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
189 key->q = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
H A Dcaam_rsa.c333 key->e = crypto_bignum_allocate(MAX_BITS_EXP_E); in do_allocate_keypair()
338 key->d = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
343 key->n = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
348 key->p = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
353 key->q = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
358 key->dp = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
363 key->dq = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
368 key->qp = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
397 key->e = crypto_bignum_allocate(MAX_BITS_EXP_E); in do_allocate_publickey()
402 key->n = crypto_bignum_allocate(size_bits); in do_allocate_publickey()
H A Dcaam_ecc.c167 key->d = crypto_bignum_allocate(CFG_CORE_BIGNUM_MAX_BITS); in do_allocate_keypair()
172 key->x = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
177 key->y = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
218 key->x = crypto_bignum_allocate(size_bits); in do_allocate_publickey()
223 key->y = crypto_bignum_allocate(size_bits); in do_allocate_publickey()
/optee_os/core/drivers/crypto/stm32/
H A Decc.c305 s->d = crypto_bignum_allocate(PKA_MAX_ECC_LEN); in stm32_alloc_keypair()
309 s->x = crypto_bignum_allocate(PKA_MAX_ECC_LEN); in stm32_alloc_keypair()
315 s->y = crypto_bignum_allocate(PKA_MAX_ECC_LEN); in stm32_alloc_keypair()
338 s->x = crypto_bignum_allocate(PKA_MAX_ECC_LEN); in stm32_alloc_publickey()
342 s->y = crypto_bignum_allocate(PKA_MAX_ECC_LEN); in stm32_alloc_publickey()
/optee_os/core/lib/libtomcrypt/
H A Dacipher_helpers.h17 *s = crypto_bignum_allocate(_CFG_CORE_LTC_BIGNUM_MAX_BITS); in bn_alloc_max()
H A Dmpi_desc.c749 struct bignum *crypto_bignum_allocate(size_t size_bits) in crypto_bignum_allocate() function
/optee_os/core/include/crypto/
H A Dcrypto.h94 struct bignum *crypto_bignum_allocate(size_t size_bits);
/optee_os/core/drivers/crypto/se050/core/
H A Decc.c129 *s = crypto_bignum_allocate(4096); in bn_alloc_max()
H A Drsa.c114 *s = crypto_bignum_allocate(4096); in bn_alloc_max()
/optee_os/core/crypto/
H A Dcrypto.c481 struct bignum *crypto_bignum_allocate(size_t size_bits __unused) in crypto_bignum_allocate() function
/optee_os/core/tee/
H A Dtee_svc_cryp.c3756 pub = crypto_bignum_allocate(alloc_size); in syscall_cryp_derive_key()
3757 ss = crypto_bignum_allocate(alloc_size); in syscall_cryp_derive_key()