Searched refs:mbedtls_mpi_bitlen (Results 1 – 16 of 16) sorted by relevance
26 if (mbedtls_mpi_bitlen(n) != 0 && in mbed_gen_random_upto()
178 if ((mbedtls_mpi_bitlen(&ecdsa.Q.X) > key_size_bits) || in ecc_generate_keypair()179 (mbedtls_mpi_bitlen(&ecdsa.Q.Y) > key_size_bits) || in ecc_generate_keypair()180 (mbedtls_mpi_bitlen(&ecdsa.d) > key_size_bits)) { in ecc_generate_keypair()187 if (mbedtls_mpi_bitlen(&ecdsa.Q.Z) != 1) { in ecc_generate_keypair()
28 return mbedtls_mpi_bitlen((const mbedtls_mpi *)a); in crypto_bignum_num_bits()
248 } else if ((size_t)mbedtls_mpi_bitlen(&rsa.N) != key_size) { in sw_crypto_acipher_gen_rsa_key()
422 size_t mbedtls_mpi_bitlen( const mbedtls_mpi *X ) in mbedtls_mpi_bitlen() function443 return( ( mbedtls_mpi_bitlen( X ) + 7 ) >> 3 ); in mbedtls_mpi_size()523 if( sign < 0 && mbedtls_mpi_bitlen( X ) != 0 ) in mbedtls_mpi_read_string()993 i = mbedtls_mpi_bitlen( X ) + count; in mbedtls_mpi_shift_l()1731 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()2096 if( mbedtls_mpi_bitlen( E ) > MBEDTLS_MPI_MAX_BITS || in mbedtls_mpi_exp_mod()2097 mbedtls_mpi_bitlen( N ) > MBEDTLS_MPI_MAX_BITS ) in mbedtls_mpi_exp_mod()2108 i = mbedtls_mpi_bitlen( E ); in mbedtls_mpi_exp_mod()2496 size_t n_bits = mbedtls_mpi_bitlen( N ); in mbedtls_mpi_random()2758 j = mbedtls_mpi_bitlen( &A ); in mpi_miller_rabin()[all …]
623 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in ecp_group_load()624 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in ecp_group_load()712 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in ecp_use_curve25519()765 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in ecp_use_curve448()
567 if( mbedtls_mpi_bitlen( &H ) <= ( ( nbits >= 200 ) ? ( ( nbits >> 1 ) - 99 ) : 0 ) ) in mbedtls_rsa_gen_key()589 … if( mbedtls_mpi_bitlen( &ctx->D ) <= ( ( nbits + 1 ) / 2 ) ) // (FIPS 186-4 §B.3.1 criterion 3(a)) in mbedtls_rsa_gen_key()647 if( mbedtls_mpi_bitlen( &ctx->N ) < 128 ) in mbedtls_rsa_check_pubkey()653 mbedtls_mpi_bitlen( &ctx->E ) < 2 || in mbedtls_rsa_check_pubkey()1656 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in rsa_rsassa_pss_sign()1692 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in rsa_rsassa_pss_sign()2083 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in mbedtls_rsa_rsassa_pss_verify_ext()
235 bitlen = mbedtls_mpi_bitlen( X ); in mbedtls_debug_print_mpi()
290 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in pk_group_from_specified()371 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in pk_group_from_specified()
1187 mbedtls_mpi_bitlen( N ) > 2 * grp->pbits ) in ecp_modp()2609 i = mbedtls_mpi_bitlen( m ); /* one past the (zero-based) most significant bit */ in ecp_mul_mxz()3093 mbedtls_mpi_bitlen( d ) - 1 != grp->nbits ) /* mbedtls_mpi_bitlen is one-based! */ in mbedtls_ecp_check_privkey()
2658 dhm_actual_bitlen = mbedtls_mpi_bitlen( &ssl->handshake->dhm_ctx.P ); in ssl_parse_server_dh_params()
2281 if (key_bits && mbedtls_mpi_bitlen(&n) != key_bits) { in set_private_key_data_rsa()2286 size = ROUNDUP_DIV(mbedtls_mpi_bitlen(&n), 8); in set_private_key_data_rsa()2304 size = ROUNDUP_DIV(mbedtls_mpi_bitlen(&e), 8); in set_private_key_data_rsa()2320 size = ROUNDUP_DIV(mbedtls_mpi_bitlen(&d), 8); in set_private_key_data_rsa()2336 size = ROUNDUP_DIV(mbedtls_mpi_bitlen(&p), 8); in set_private_key_data_rsa()2352 size = ROUNDUP_DIV(mbedtls_mpi_bitlen(&q), 8); in set_private_key_data_rsa()
396 size_t mbedtls_mpi_bitlen( const mbedtls_mpi *X );
2072 #define mpi_msb mbedtls_mpi_bitlen
191 return mbedtls_mpi_bitlen(a); in count_bits()716 return mbedtls_mpi_bitlen((mbedtls_mpi *)a); in crypto_bignum_num_bits()
308 rc = mbedtls_mpi_bitlen(&mpi); in TEE_BigIntGetBitCount()
Completed in 72 milliseconds