Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/drivers/crypto/crypto_api/acipher/
A Ddsa.c129 size_t n_bytes = 0; in crypto_acipher_dsa_sign() local
143 n_bytes = crypto_bignum_num_bytes(key->q); in crypto_acipher_dsa_sign()
145 if (*sig_len < 2 * n_bytes) { in crypto_acipher_dsa_sign()
147 *sig_len, 2 * n_bytes); in crypto_acipher_dsa_sign()
148 *sig_len = 2 * n_bytes; in crypto_acipher_dsa_sign()
161 sdata.size_sec = n_bytes; in crypto_acipher_dsa_sign()
189 size_t n_bytes = 0; in crypto_acipher_dsa_verify() local
203 n_bytes = crypto_bignum_num_bytes(key->q); in crypto_acipher_dsa_verify()
205 if (sig_len != 2 * n_bytes) { in crypto_acipher_dsa_verify()
207 sig_len, 2 * n_bytes); in crypto_acipher_dsa_verify()
[all …]
/optee_os/core/drivers/crypto/caam/acipher/
A Dcaam_dsa.c70 size_t l_bytes, size_t n_bytes) in get_keypair_domain_params() argument
79 l_bytes, n_bytes); in get_keypair_domain_params()
122 outkey->q.data + n_bytes - in_q_size); in get_keypair_domain_params()
152 size_t l_bytes, size_t n_bytes) in do_keypriv_conv() argument
158 l_bytes, n_bytes); in do_keypriv_conv()
214 size_t l_bytes, size_t n_bytes) in do_keypub_conv() argument
220 l_bytes, n_bytes); in do_keypub_conv()
387 size_t n_bytes = n_bits / 8; in do_gen_keypair() local
429 PDB_DL_KEY_N_SIZE(n_bytes)); in do_gen_keypair()
485 size_t n_bytes) in do_sign() argument
[all …]
A Dcaam_dh.c223 size_t n_bytes = key_size / 8; in do_gen_keypair() local
238 if (!n_bytes) in do_gen_keypair()
239 n_bytes = l_bytes; in do_gen_keypair()
245 if (n_bytes > PDB_DL_KEY_N_MASK) in do_gen_keypair()
246 n_bytes = PDB_DL_KEY_N_MASK; in do_gen_keypair()
249 n_bytes); in do_gen_keypair()
277 retstatus = caam_calloc_buf(&dh_r, n_bytes); in do_gen_keypair()
300 PDB_DL_KEY_N_SIZE(n_bytes)); in do_gen_keypair()
336 if (crypto_bignum_num_bytes(key->x) != n_bytes) { in do_gen_keypair()
339 n_bytes); in do_gen_keypair()
[all …]
/optee_os/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h204 size_t n_bytes);
207 size_t n_bytes);
/optee_os/lib/libmbedtls/mbedtls/library/
A Dbignum.c2731 mbedtls_mpi *X, size_t n_bytes, in mpi_fill_random_internal() argument
2735 const size_t limbs = CHARS_TO_LIMBS( n_bytes ); in mpi_fill_random_internal()
2736 const size_t overhead = ( limbs * ciL ) - n_bytes; in mpi_fill_random_internal()
2743 MBEDTLS_MPI_CHK( f_rng( p_rng, (unsigned char *) X->p + overhead, n_bytes ) ); in mpi_fill_random_internal()
2788 size_t n_bytes = ( n_bits + 7 ) / 8; in mbedtls_mpi_random() local
2813 count = ( n_bytes > 4 ? 30 : 250 ); in mbedtls_mpi_random()
2834 MBEDTLS_MPI_CHK( mpi_fill_random_internal( X, n_bytes, f_rng, p_rng ) ); in mbedtls_mpi_random()
2835 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( X, 8 * n_bytes - n_bits ) ); in mbedtls_mpi_random()

Completed in 11 milliseconds