Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_bitlen (Results 1 – 17 of 17) sorted by relevance

/net-tools-latest/mbedtls-2.4.0/tests/suites/
Dtest_suite_mpi.data88 Base test mbedtls_mpi_bitlen #1
89 mbedtls_mpi_bitlen:10:"5612568098175228233414189632037248949061396369355639252081601789211135060411…
91 Base test mbedtls_mpi_bitlen #2
92 mbedtls_mpi_bitlen:10:"24":5
94 Base test mbedtls_mpi_bitlen #3
95 mbedtls_mpi_bitlen:10:"1":1
97 Base test mbedtls_mpi_bitlen #4
98 mbedtls_mpi_bitlen:10:"15":4
100 Base test mbedtls_mpi_bitlen #5
101 mbedtls_mpi_bitlen:10:"16":5
[all …]
Dtest_suite_mpi.function21 TEST_ASSERT( mbedtls_mpi_bitlen( &X ) == 0 );
227 void mbedtls_mpi_bitlen( int radix_X, char *input_X, int nr_bits )
233 TEST_ASSERT( mbedtls_mpi_bitlen( &X ) == (size_t) nr_bits );
825 size_t actual_bits = mbedtls_mpi_bitlen( &X );
Dtest_suite_ecp.function178 TEST_ASSERT( mbedtls_mpi_bitlen( &N ) <= grp.pbits + 3 );
374 TEST_ASSERT( mbedtls_mpi_bitlen( &grp.P ) == (size_t) bits );
/net-tools-latest/mbedtls-2.4.0/programs/pkey/
Drsa_verify.c96 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_encrypt.c125 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_sign.c104 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_decrypt.c132 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Ddh_client.c134 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Ddh_server.c141 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
/net-tools-latest/mbedtls-2.4.0/library/
Drsa.c129 if( mbedtls_mpi_bitlen( &ctx->N ) != nbits ) in mbedtls_rsa_gen_key()
153 ctx->len = ( mbedtls_mpi_bitlen( &ctx->N ) + 7 ) >> 3; in mbedtls_rsa_gen_key()
182 if( mbedtls_mpi_bitlen( &ctx->N ) < 128 || in mbedtls_rsa_check_pubkey()
183 mbedtls_mpi_bitlen( &ctx->N ) > MBEDTLS_MPI_MAX_BITS ) in mbedtls_rsa_check_pubkey()
186 if( mbedtls_mpi_bitlen( &ctx->E ) < 2 || in mbedtls_rsa_check_pubkey()
974 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in mbedtls_rsa_rsassa_pss_sign()
1003 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in mbedtls_rsa_rsassa_pss_sign()
1242 msb = mbedtls_mpi_bitlen( &ctx->N ) - 1; in mbedtls_rsa_rsassa_pss_verify_ext()
Dbignum.c380 size_t mbedtls_mpi_bitlen( const mbedtls_mpi *X ) in mbedtls_mpi_bitlen() function
401 return( ( mbedtls_mpi_bitlen( X ) + 7 ) >> 3 ); in mbedtls_mpi_size()
534 n = mbedtls_mpi_bitlen( X ); in mbedtls_mpi_write_string()
719 i = mbedtls_mpi_bitlen( X ) + count; in mbedtls_mpi_shift_l()
1345 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()
1626 i = mbedtls_mpi_bitlen( E ); in mbedtls_mpi_exp_mod()
2061 i = mbedtls_mpi_bitlen( X ); in mpi_miller_rabin()
2078 j = mbedtls_mpi_bitlen( &A ) - mbedtls_mpi_bitlen( &W ); in mpi_miller_rabin()
2087 j = mbedtls_mpi_bitlen( &A ); in mpi_miller_rabin()
2088 k = mbedtls_mpi_bitlen( &W ); in mpi_miller_rabin()
[all …]
Decp.c672 mbedtls_mpi_bitlen( N ) > 2 * grp->pbits ) in ecp_modp()
1580 i = mbedtls_mpi_bitlen( m ); /* one past the (zero-based) most significant bit */ in ecp_mul_mxz()
1791 mbedtls_mpi_bitlen( d ) - 1 != grp->nbits ) /* mbedtls_mpi_bitlen is one-based! */ in mbedtls_ecp_check_privkey()
1832 } while( mbedtls_mpi_bitlen( d ) == 0); in mbedtls_ecp_gen_keypair_base()
1835 b = mbedtls_mpi_bitlen( d ) - 1; /* mbedtls_mpi_bitlen is one-based */ in mbedtls_ecp_gen_keypair_base()
Decp_curves.c593 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in ecp_group_load()
594 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in ecp_group_load()
669 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in ecp_use_curve25519()
Dpkparse.c276 grp->pbits = mbedtls_mpi_bitlen( &grp->P ); in pk_group_from_specified()
357 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in pk_group_from_specified()
/net-tools-latest/mbedtls-2.4.0/include/mbedtls/
Dbignum.h302 size_t mbedtls_mpi_bitlen( const mbedtls_mpi *X );
Dcompat-1.3.h2137 #define mpi_msb mbedtls_mpi_bitlen
/net-tools-latest/mbedtls-2.4.0/scripts/data_files/
Drename-1.3-2.0.txt1682 mpi_msb mbedtls_mpi_bitlen