| /optee_os/lib/libmbedtls/core/ |
| H A D | ecc.c | 48 size_t *key_size_bytes, size_t *key_size_bits) in ecc_get_keysize() argument 52 *key_size_bits = 192; in ecc_get_keysize() 56 *key_size_bits = 224; in ecc_get_keysize() 60 *key_size_bits = 256; in ecc_get_keysize() 64 *key_size_bits = 384; in ecc_get_keysize() 68 *key_size_bits = 521; in ecc_get_keysize() 72 *key_size_bits = 256; in ecc_get_keysize() 79 *key_size_bits = 0; in ecc_get_keysize() 114 size_t key_size_bits = 0; in ecc_generate_keypair() local 119 res = ecc_get_keysize(key->curve, 0, &key_size_bytes, &key_size_bits); in ecc_generate_keypair() [all …]
|
| H A D | dh.c | 18 size_t key_size_bits) in crypto_acipher_alloc_dh_keypair() argument 21 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 D | rsa.c | 193 size_t key_size_bits) 197 size_t key_size_bits) in sw_crypto_acipher_alloc_rsa_keypair() argument 200 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() [all …]
|
| /optee_os/core/pta/tests/ |
| H A D | aes_perf.c | 53 size_t key_size_bits, size_t payload_len) in init_ctx() argument 62 if (key_size_bits % 8) in init_ctx() 64 key_len = key_size_bits / 8; in init_ctx() 171 size_t key_size_bits = 0; in core_aes_perf_tests() local 203 key_size_bits = params[0].value.a & 0xffff; in core_aes_perf_tests() 211 res = init_ctx(&ctx, algo, mode, key_size_bits, params[2].memref.size); in core_aes_perf_tests()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | ecc.c | 33 size_t *key_size_bits, in ecc_get_curve_info() argument 105 if (key_size_bits) in ecc_get_curve_info() 106 *key_size_bits = size_bits; in ecc_get_curve_info() 137 size_t key_size_bits = 0; in _ltc_ecc_generate_keypair() local 140 res = ecc_get_curve_info(key->curve, 0, &key_size_bytes, &key_size_bits, in _ltc_ecc_generate_keypair() 145 if (key_size != key_size_bits) in _ltc_ecc_generate_keypair() 159 if (((size_t)mp_count_bits(ltc_tmp_key.pubkey.x) > key_size_bits) || in _ltc_ecc_generate_keypair() 160 ((size_t)mp_count_bits(ltc_tmp_key.pubkey.y) > key_size_bits) || in _ltc_ecc_generate_keypair() 161 ((size_t)mp_count_bits(ltc_tmp_key.k) > key_size_bits)) { in _ltc_ecc_generate_keypair() 417 size_t key_size_bits __unused) in crypto_asym_alloc_ecc_keypair() [all …]
|
| H A D | dsa.c | 17 size_t key_size_bits __unused) in crypto_acipher_alloc_dsa_keypair() 41 size_t key_size_bits __unused) in crypto_acipher_alloc_dsa_public_key()
|
| H A D | dh.c | 16 size_t key_size_bits __unused) in crypto_acipher_alloc_dh_keypair()
|
| H A D | rsa.c | 97 size_t key_size_bits __unused) 101 size_t key_size_bits __unused) in sw_crypto_acipher_alloc_rsa_keypair() 129 size_t key_size_bits __unused) 133 size_t key_size_bits __unused) in sw_crypto_acipher_alloc_rsa_public_key()
|
| /optee_os/core/include/crypto/ |
| H A D | crypto.h | 193 size_t key_size_bits); 195 size_t key_size_bits); 199 size_t key_size_bits); 201 size_t key_size_bits); 203 size_t key_size_bits); 206 size_t key_size_bits); 209 size_t key_size_bits); 212 size_t key_size_bits); 214 size_t key_size_bits); 216 size_t key_size_bits);
|
| H A D | crypto_impl.h | 432 TEE_Result (*generate)(struct ecc_keypair *key, size_t key_size_bits); 452 size_t key_size_bits); 455 size_t key_size_bits); 460 size_t key_size_bits __unused) in crypto_asym_alloc_ecc_public_key() 480 size_t key_size_bits __unused) in crypto_asym_alloc_ecc_keypair() 489 size_t key_size_bits); 492 size_t key_size_bits); 497 size_t key_size_bits __unused) in drvcrypt_asym_alloc_ecc_public_key() 505 size_t key_size_bits __unused) in drvcrypt_asym_alloc_ecc_keypair() 512 size_t key_size_bits); [all …]
|
| /optee_os/core/crypto/ |
| H A D | crypto.c | 552 size_t key_size_bits __unused) in crypto_acipher_alloc_rsa_keypair() 559 size_t key_size_bits __unused) in crypto_acipher_alloc_rsa_public_key() 647 size_t key_size_bits __unused) in crypto_acipher_alloc_dsa_keypair() 654 size_t key_size_bits __unused) in crypto_acipher_alloc_dsa_public_key() 688 size_t key_size_bits __unused) in crypto_acipher_alloc_dh_keypair() 712 size_t key_size_bits) in crypto_acipher_alloc_ecc_public_key() argument 720 res = drvcrypt_asym_alloc_ecc_public_key(key, key_type, key_size_bits); in crypto_acipher_alloc_ecc_public_key() 723 key_size_bits); in crypto_acipher_alloc_ecc_public_key() 730 size_t key_size_bits) in crypto_acipher_alloc_ecc_keypair() argument 738 res = drvcrypt_asym_alloc_ecc_keypair(key, key_type, key_size_bits); in crypto_acipher_alloc_ecc_keypair() [all …]
|
| H A D | signed_hdr.c | 61 static bool is_weak_key_size(uint32_t algo, size_t key_size_bits) in is_weak_key_size() argument 64 key_size_bits < 2048) in is_weak_key_size()
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | ecc.c | 131 size_t key_size_bits = 0; in ecc_generate_keypair() local 139 key_size_bits = get_ecc_key_size_bits(key->curve); in ecc_generate_keypair() 143 ret = ecc->gen_keypair(key, key_size_bits); in ecc_generate_keypair() 146 key_size_bits, ret); in ecc_generate_keypair()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | rsa.c | 518 size_t key_size_bits __unused) in do_alloc_keypair() 553 size_t key_size_bits __unused) in do_alloc_publickey()
|