/optee_os/out/arm/export-ta_arm32/include/ |
A D | bitstring.h | 52 #define bitstr_size(nbits) \ argument 53 (((nbits) + 7) >> 3) 56 #define bit_alloc(nbits) \ argument 60 #define bit_decl(name, nbits) \ argument 61 ((name)[bitstr_size(nbits)]) 110 #define bit_ffc(name, nbits, value) do { \ argument 112 register int _byte, _nbits = (nbits); \ 123 if (_value >= nbits) \ 129 #define bit_ffs(name, nbits, value) do { \ argument 131 register int _byte, _nbits = (nbits); \ [all …]
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | bitstring.h | 52 #define bitstr_size(nbits) \ argument 53 (((nbits) + 7) >> 3) 56 #define bit_alloc(nbits) \ argument 60 #define bit_decl(name, nbits) \ argument 61 ((name)[bitstr_size(nbits)]) 110 #define bit_ffc(name, nbits, value) do { \ argument 112 register int _byte, _nbits = (nbits); \ 123 if (_value >= nbits) \ 129 #define bit_ffs(name, nbits, value) do { \ argument 131 register int _byte, _nbits = (nbits); \ [all …]
|
/optee_os/lib/libutils/ext/include/ |
A D | bitstring.h | 52 #define bitstr_size(nbits) \ argument 53 (((nbits) + 7) >> 3) 56 #define bit_alloc(nbits) \ argument 60 #define bit_decl(name, nbits) \ argument 61 ((name)[bitstr_size(nbits)]) 110 #define bit_ffc(name, nbits, value) do { \ argument 112 register int _byte, _nbits = (nbits); \ 123 if (_value >= nbits) \ 129 #define bit_ffs(name, nbits, value) do { \ argument 131 register int _byte, _nbits = (nbits); \ [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/bit/ |
A D | der_length_bit_string.c | 24 int der_length_bit_string(unsigned long nbits, unsigned long *outlen) in der_length_bit_string() argument 32 nbytes = (nbits >> 3) + ((nbits & 7) ? 1 : 0) + 1; in der_length_bit_string()
|
/optee_os/core/tee/ |
A D | fs_dirfile.c | 17 int nbits; member 44 if (idx < dirh->nbits) in maybe_grow_files() 52 bit_nclear(dirh->files, dirh->nbits, idx); in maybe_grow_files() 53 dirh->nbits = idx + 1; in maybe_grow_files() 70 if (idx < dirh->nbits) in clear_file() 76 if (idx < dirh->nbits) in test_file() 184 if (dirh->nbits) { in tee_fs_dirfile_get_tmp() 185 bit_ffc(dirh->files, dirh->nbits, &i); in tee_fs_dirfile_get_tmp() 187 i = dirh->nbits; in tee_fs_dirfile_get_tmp()
|
A D | tadb.c | 33 int nbits; member 147 if (idx < db->nbits) in maybe_grow_files() 155 bit_nclear(db->files, db->nbits, idx); in maybe_grow_files() 156 db->nbits = idx + 1; in maybe_grow_files() 177 if (idx < db->nbits) in clear_file() 187 if (idx < db->nbits) in test_file() 322 if (db->nbits) in populate_files() 367 db->nbits = 0; in populate_files() 401 bit_ffc(ta->db->files, ta->db->nbits, &i); in tee_tadb_ta_create() 403 i = ta->db->nbits; in tee_tadb_ta_create()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | bignum.c | 2506 nbits = 0; in mbedtls_mpi_exp_mod() 2546 nbits++; in mbedtls_mpi_exp_mod() 2564 nbits = 0; in mbedtls_mpi_exp_mod() 3187 if( nbits < 3 || nbits > MBEDTLS_MPI_MAX_BITS ) in mbedtls_mpi_gen_prime() 3199 rounds = ( ( nbits >= 1300 ) ? 2 : ( nbits >= 850 ) ? 3 : in mbedtls_mpi_gen_prime() 3200 ( nbits >= 650 ) ? 4 : ( nbits >= 350 ) ? 8 : in mbedtls_mpi_gen_prime() 3201 ( nbits >= 250 ) ? 12 : ( nbits >= 150 ) ? 18 : 27 ); in mbedtls_mpi_gen_prime() 3209 rounds = ( ( nbits >= 1450 ) ? 4 : ( nbits >= 1150 ) ? 5 : in mbedtls_mpi_gen_prime() 3210 ( nbits >= 1000 ) ? 6 : ( nbits >= 850 ) ? 7 : in mbedtls_mpi_gen_prime() 3211 ( nbits >= 750 ) ? 8 : ( nbits >= 500 ) ? 13 : in mbedtls_mpi_gen_prime() [all …]
|
A D | ecp.c | 701 grp->nbits = 0; in mbedtls_ecp_group_init() 2229 w = grp->nbits >= 384 ? 5 : 4; in ecp_pick_window_size() 2247 if( w >= grp->nbits ) in ecp_pick_window_size() 2303 const size_t m_len = ( grp->nbits + 7 ) / 8; in ecp_mul_comb() 2324 d = ( grp->nbits + w - 1 ) / w; in ecp_mul_comb() 2584 const size_t m_len = ( grp->nbits + 7 ) / 8; in ecp_mul_mxz() 3042 if( mbedtls_mpi_size( &pt->X ) > ( grp->nbits + 7 ) / 8 ) in ecp_check_pubkey_mx() 3098 if( grp->nbits == 254 && mbedtls_mpi_get_bit( d, 2 ) != 0 ) in mbedtls_ecp_check_privkey() 3183 return( mbedtls_ecp_gen_privkey_mx( grp->nbits, d, f_rng, p_rng ) ); in mbedtls_ecp_gen_privkey() 3420 MBEDTLS_MPI_CHK( mbedtls_mpi_set_bit( m, grp->nbits, 1 ) ); in self_test_adjust_exponent() [all …]
|
A D | ecdsa.c | 231 size_t n_size = ( grp->nbits + 7 ) / 8; in derive_mpi() 235 if( use_size * 8 > grp->nbits ) in derive_mpi() 236 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( x, use_size * 8 - grp->nbits ) ); in derive_mpi() 436 size_t grp_len = ( grp->nbits + 7 ) / 8; in ecdsa_sign_det_restartable()
|
A D | rsa.c | 535 unsigned int nbits, int exponent ) in mbedtls_rsa_gen_key() argument 548 if( nbits > 1024 ) in mbedtls_rsa_gen_key() 555 if( nbits < 128 || exponent < 3 || nbits % 2 != 0 ) in mbedtls_rsa_gen_key() 571 MBEDTLS_MPI_CHK( mbedtls_mpi_gen_prime( &ctx->P, nbits >> 1, in mbedtls_rsa_gen_key() 574 MBEDTLS_MPI_CHK( mbedtls_mpi_gen_prime( &ctx->Q, nbits >> 1, in mbedtls_rsa_gen_key() 579 if( mbedtls_mpi_bitlen( &H ) <= ( ( nbits >= 200 ) ? ( ( nbits >> 1 ) - 99 ) : 0 ) ) in mbedtls_rsa_gen_key() 601 … if( mbedtls_mpi_bitlen( &ctx->D ) <= ( ( nbits + 1 ) / 2 ) ) // (FIPS 186-4 §B.3.1 criterion 3(a)) in mbedtls_rsa_gen_key()
|
A D | pkparse.c | 371 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in pk_group_from_specified() 399 if( grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | rsa.h | 446 unsigned int nbits, int exponent );
|
A D | bignum.h | 1040 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int flags,
|
A D | ecp.h | 265 size_t nbits; /*!< For Short Weierstrass: The number of bits in \p P. member
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | rsa.h | 446 unsigned int nbits, int exponent );
|
A D | bignum.h | 1040 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int flags,
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | rsa.h | 446 unsigned int nbits, int exponent );
|
A D | bignum.h | 1040 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int flags,
|
A D | ecp.h | 265 size_t nbits; /*!< For Short Weierstrass: The number of bits in \p P. member
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | rsa.h | 446 unsigned int nbits, int exponent );
|
A D | bignum.h | 1040 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int flags,
|
A D | ecp.h | 265 size_t nbits; /*!< For Short Weierstrass: The number of bits in \p P. member
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | rsa.h | 446 unsigned int nbits, int exponent );
|
A D | bignum.h | 1040 int mbedtls_mpi_gen_prime( mbedtls_mpi *X, size_t nbits, int flags,
|
A D | ecp.h | 265 size_t nbits; /*!< For Short Weierstrass: The number of bits in \p P. member
|