Searched refs:n_bytes (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/ |
A D | dsa.c | 129 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-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | caam_dsa.c | 70 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 D | caam_dh.c | 223 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-3.20.0/core/drivers/crypto/crypto_api/include/ |
A D | drvcrypt_acipher.h | 205 size_t n_bytes); 208 size_t n_bytes);
|
/optee_os-3.20.0/scripts/ |
A D | sign_encrypt.py | 457 n_bytes = int_to_bytes(subkey_pkey.public_numbers().n) 464 attrs_end_offs, len(n_bytes), 466 attrs_end_offs + len(n_bytes), 468 self.img = uuid.bytes + shdr_subkey + n_bytes + e_bytes 558 n_bytes = find_attr(TEE_ATTR_RSA_MODULUS) 561 n = int.from_bytes(n_bytes, 'big')
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | bignum.c | 2440 mbedtls_mpi *X, size_t n_bytes, in mpi_fill_random_internal() argument 2444 const size_t limbs = CHARS_TO_LIMBS( n_bytes ); in mpi_fill_random_internal() 2445 const size_t overhead = ( limbs * ciL ) - n_bytes; in mpi_fill_random_internal() 2452 MBEDTLS_MPI_CHK( f_rng( p_rng, (unsigned char *) X->p + overhead, n_bytes ) ); in mpi_fill_random_internal() 2497 size_t n_bytes = ( n_bits + 7 ) / 8; in mbedtls_mpi_random() local 2522 count = ( n_bytes > 4 ? 30 : 250 ); in mbedtls_mpi_random() 2543 MBEDTLS_MPI_CHK( mpi_fill_random_internal( X, n_bytes, f_rng, p_rng ) ); in mbedtls_mpi_random() 2544 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( X, 8 * n_bytes - n_bits ) ); in mbedtls_mpi_random()
|
Completed in 13 milliseconds