Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Ddsa.c25 if (size_bits <= 1024) in get_keys_size()
27 else if (size_bits <= 3072) in get_keys_size()
32 *l_bits = size_bits; in get_keys_size()
38 size_t size_bits) in crypto_acipher_alloc_dsa_keypair() argument
45 if (!key || !size_bits) { in crypto_acipher_alloc_dsa_keypair()
47 (uintptr_t)key, size_bits); in crypto_acipher_alloc_dsa_keypair()
51 ret = get_keys_size(size_bits, &l_bits, &n_bits); in crypto_acipher_alloc_dsa_keypair()
66 size_t size_bits) in crypto_acipher_alloc_dsa_public_key() argument
73 if (!key || !size_bits) { in crypto_acipher_alloc_dsa_public_key()
75 (uintptr_t)key, size_bits); in crypto_acipher_alloc_dsa_public_key()
[all …]
A Ddh.c13 size_t size_bits) in crypto_acipher_alloc_dh_keypair() argument
18 if (!key || !size_bits) { in crypto_acipher_alloc_dh_keypair()
20 (uintptr_t)key, size_bits); in crypto_acipher_alloc_dh_keypair()
26 ret = dh->alloc_keypair(key, size_bits); in crypto_acipher_alloc_dh_keypair()
28 CRYPTO_TRACE("DH Keypair (%zu bits) alloc ret = 0x%" PRIx32, size_bits, in crypto_acipher_alloc_dh_keypair()
A Decc.c120 size_t size_bits __maybe_unused) in ecc_generate_keypair()
350 uint32_t type, size_t size_bits) in drvcrypt_asym_alloc_ecc_keypair() argument
355 if (!key || !size_bits) { in drvcrypt_asym_alloc_ecc_keypair()
357 size_bits); in drvcrypt_asym_alloc_ecc_keypair()
371 ret = ecc->alloc_keypair(key, size_bits); in drvcrypt_asym_alloc_ecc_keypair()
376 CRYPTO_TRACE("ECC Keypair (%zu bits) alloc ret = 0x%" PRIx32, size_bits, in drvcrypt_asym_alloc_ecc_keypair()
387 uint32_t type, size_t size_bits) in drvcrypt_asym_alloc_ecc_public_key() argument
392 if (!key || !size_bits) { in drvcrypt_asym_alloc_ecc_public_key()
394 size_bits); in drvcrypt_asym_alloc_ecc_public_key()
408 ret = ecc->alloc_publickey(key, size_bits); in drvcrypt_asym_alloc_ecc_public_key()
[all …]
A Drsa.c18 size_t size_bits) in crypto_acipher_alloc_rsa_keypair() argument
24 if (!key || !size_bits) { in crypto_acipher_alloc_rsa_keypair()
26 size_bits); in crypto_acipher_alloc_rsa_keypair()
32 ret = rsa->alloc_keypair(key, size_bits); in crypto_acipher_alloc_rsa_keypair()
40 size_t size_bits) in crypto_acipher_alloc_rsa_public_key() argument
45 if (!key || !size_bits) { in crypto_acipher_alloc_rsa_public_key()
47 size_bits); in crypto_acipher_alloc_rsa_public_key()
56 size_bits, ret); in crypto_acipher_alloc_rsa_public_key()
91 if (!key || !size_bits) { in crypto_acipher_gen_rsa_key()
93 key, size_bits); in crypto_acipher_gen_rsa_key()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h81 TEE_Result (*alloc_keypair)(struct rsa_keypair *key, size_t size_bits);
84 size_t size_bits);
90 TEE_Result (*gen_keypair)(struct rsa_keypair *key, size_t size_bits);
141 TEE_Result (*alloc_keypair)(struct ecc_keypair *key, size_t size_bits);
144 size_t size_bits);
172 TEE_Result (*alloc_keypair)(struct dh_keypair *key, size_t size_bits);
175 size_t size_bits);
/optee_os-3.20.0/lib/libmbedtls/core/
A Dbignum.c71 struct bignum *crypto_bignum_allocate(size_t size_bits) in crypto_bignum_allocate() argument
75 if (size_bits > CFG_CORE_BIGNUM_MAX_BITS) in crypto_bignum_allocate()
76 size_bits = CFG_CORE_BIGNUM_MAX_BITS; in crypto_bignum_allocate()
82 if (mbedtls_mpi_grow(bn, BITS_TO_LIMBS(size_bits)) != 0) { in crypto_bignum_allocate()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Decc.c37 size_t size_bits = 0; in ecc_get_curve_info() local
56 size_bits = 192; in ecc_get_curve_info()
64 size_bits = 224; in ecc_get_curve_info()
72 size_bits = 256; in ecc_get_curve_info()
80 size_bits = 384; in ecc_get_curve_info()
88 size_bits = 521; in ecc_get_curve_info()
96 size_bits = 256; in ecc_get_curve_info()
111 *key_size_bits = size_bits; in ecc_get_curve_info()
A Dmpi_desc.c75 static int init_size(int size_bits __unused, void **a) in init_size()
750 struct bignum *crypto_bignum_allocate(size_t size_bits) in crypto_bignum_allocate() argument
758 if (mbedtls_mpi_grow(bn, BITS_TO_LIMBS(size_bits))) { in crypto_bignum_allocate()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dmulti.c37 int ltc_init_multi_size(int size_bits, void **a, ...) in ltc_init_multi_size() argument
45 if (mp_init_size(size_bits, cur) != CRYPT_OK) { in ltc_init_multi_size()
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dcaam_dh.c161 static TEE_Result do_allocate_keypair(struct dh_keypair *key, size_t size_bits) in do_allocate_keypair() argument
163 DH_TRACE("Allocate Keypair of %zu bits", size_bits); in do_allocate_keypair()
169 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(size_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()
A Dcaam_ecc.c145 static TEE_Result do_allocate_keypair(struct ecc_keypair *key, size_t size_bits) in do_allocate_keypair() argument
147 ECC_TRACE("Allocate Keypair of %zu bits", size_bits); in do_allocate_keypair()
153 key->d = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
158 key->x = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
163 key->y = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
185 size_t size_bits) in do_allocate_publickey() argument
187 ECC_TRACE("Allocate Public Key of %zu bits", size_bits); in do_allocate_publickey()
193 key->x = crypto_bignum_allocate(size_bits); in do_allocate_publickey()
198 key->y = crypto_bignum_allocate(size_bits); in do_allocate_publickey()
A Dcaam_rsa.c354 RSA_TRACE("Allocate Keypair of %zu bits", size_bits); in do_allocate_keypair()
365 key->d = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
370 key->n = crypto_bignum_allocate(size_bits); in do_allocate_keypair()
375 key->p = crypto_bignum_allocate(size_bits / 2); in do_allocate_keypair()
380 key->q = crypto_bignum_allocate(size_bits / 2); in do_allocate_keypair()
385 key->dp = crypto_bignum_allocate(size_bits / 2); in do_allocate_keypair()
390 key->dq = crypto_bignum_allocate(size_bits / 2); in do_allocate_keypair()
395 key->qp = crypto_bignum_allocate(size_bits / 2); in do_allocate_keypair()
416 size_t size_bits) in do_allocate_publickey() argument
418 RSA_TRACE("Allocate Public Key of %zu bits", size_bits); in do_allocate_publickey()
[all …]
/optee_os-3.20.0/core/drivers/crypto/versal/
A Decc.c368 static TEE_Result do_gen_keypair(struct ecc_keypair *s, size_t size_bits) in do_gen_keypair() argument
375 return keypair_ops->generate(s, size_bits); in do_gen_keypair()
378 static TEE_Result do_alloc_keypair(struct ecc_keypair *s, size_t size_bits) in do_alloc_keypair() argument
383 size_bits); in do_alloc_keypair()
392 static TEE_Result do_alloc_publickey(struct ecc_public_key *s, size_t size_bits) in do_alloc_publickey() argument
397 size_bits); in do_alloc_publickey()
A Drsa.c303 static TEE_Result do_gen_keypair(struct rsa_keypair *s, size_t size_bits) in do_gen_keypair() argument
305 return sw_crypto_acipher_gen_rsa_key(s, size_bits); in do_gen_keypair()
308 static TEE_Result do_alloc_keypair(struct rsa_keypair *s, size_t size_bits) in do_alloc_keypair() argument
310 return sw_crypto_acipher_alloc_rsa_keypair(s, size_bits); in do_alloc_keypair()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h51 int (*init_size)(int size_bits, void **a);
513 int ltc_init_multi_size(int size_bits, void **a, ...) LTC_NULL_TERMINATED;
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Decc.c744 size_t size_bits __unused) in do_alloc_keypair()
762 size_t size_bits __unused) in do_alloc_publickey()
/optee_os-3.20.0/core/include/crypto/
A Dcrypto.h94 struct bignum *crypto_bignum_allocate(size_t size_bits);
/optee_os-3.20.0/core/crypto/
A Dcrypto.c452 struct bignum *crypto_bignum_allocate(size_t size_bits __unused) in crypto_bignum_allocate()

Completed in 26 milliseconds