/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | des.c | 264 #define DES_IP(X,Y) \ argument 266 T = ((X >> 4) ^ Y) & 0x0F0F0F0F; Y ^= T; X ^= (T << 4); \ 267 T = ((X >> 16) ^ Y) & 0x0000FFFF; Y ^= T; X ^= (T << 16); \ 268 T = ((Y >> 2) ^ X) & 0x33333333; X ^= T; Y ^= (T << 2); \ 269 T = ((Y >> 8) ^ X) & 0x00FF00FF; X ^= T; Y ^= (T << 8); \ 270 Y = ((Y << 1) | (Y >> 31)) & 0xFFFFFFFF; \ 271 T = (X ^ Y) & 0xAAAAAAAA; Y ^= T; X ^= T; \ 278 #define DES_FP(X,Y) \ argument 281 T = (X ^ Y) & 0xAAAAAAAA; X ^= T; Y ^= T; \ 282 Y = ((Y << 31) | (Y >> 1)) & 0xFFFFFFFF; \ [all …]
|
D | bignum.c | 180 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ) in mbedtls_mpi_copy() argument 185 if( X == Y ) in mbedtls_mpi_copy() 188 if( Y->p == NULL ) in mbedtls_mpi_copy() 194 for( i = Y->n - 1; i > 0; i-- ) in mbedtls_mpi_copy() 195 if( Y->p[i] != 0 ) in mbedtls_mpi_copy() 199 X->s = Y->s; in mbedtls_mpi_copy() 204 memcpy( X->p, Y->p, i * ciL ); in mbedtls_mpi_copy() 214 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ) in mbedtls_mpi_swap() argument 219 memcpy( X, Y, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap() 220 memcpy( Y, &T, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap() [all …]
|
D | ecp.c | 262 if( grp->G.Y.p == NULL ) in ecp_get_type() 277 mbedtls_mpi_init( &pt->Y ); in mbedtls_ecp_point_init() 314 mbedtls_mpi_free( &( pt->Y ) ); in mbedtls_ecp_point_free() 368 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Y, &Q->Y ) ); in mbedtls_ecp_copy() 391 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Y , 1 ) ); in mbedtls_ecp_set_zero() 413 mbedtls_mpi_cmp_mpi( &P->Y, &Q->Y ) == 0 && in mbedtls_ecp_point_cmp() 431 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &P->Y, radix, y ) ); in mbedtls_ecp_point_read_string() 477 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->Y, buf + 1 + plen, plen ) ); in mbedtls_ecp_point_write_binary() 486 buf[0] = 0x02 + mbedtls_mpi_get_bit( &P->Y, 0 ); in mbedtls_ecp_point_write_binary() 523 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->Y, buf + 1 + plen, plen ) ); in mbedtls_ecp_point_read_binary() [all …]
|
D | havege.c | 61 #define SWAP(X,Y) { int *T = X; X = Y; Y = T; } argument
|
D | pkparse.c | 342 mbedtls_mpi_lset( &grp->G.Y, p[0] - 2 ) != 0 || in pk_group_from_specified() 393 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group()
|
D | debug.c | 209 mbedtls_debug_print_mpi( ssl, level, file, line, str, &X->Y ); in mbedtls_debug_print_ecp()
|
D | ecp_curves.c | 590 ecp_mpi_load( &grp->G.Y, gy, gylen ); in ecp_group_load() 675 mbedtls_mpi_free( &grp->G.Y ); in ecp_use_curve25519()
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_mpi.function | 13 mbedtls_mpi X, Y, Z; 16 mbedtls_mpi_init( &Y ); 151 mbedtls_mpi X, Y; 155 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); 167 ret = mbedtls_mpi_read_file( &Y, output_radix, file_in ); 171 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &X, &Y ) == 0 ); 174 mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); 195 mbedtls_mpi X, Y; 196 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); 199 TEST_ASSERT( mbedtls_mpi_read_string( &Y, radix_Y, output_Y ) == 0 ); [all …]
|
D | test_suite_ecp.function | 84 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yA ) == 0 ); 88 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yZ ) == 0 ); 93 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yB ) == 0 ); 98 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yZ ) == 0 ); 209 TEST_ASSERT( mbedtls_mpi_read_string( &P.Y, 16, y ) == 0 ); 232 mbedtls_mpi X, Y, Z; 239 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); mbedtls_mpi_init( &Z ); 244 TEST_ASSERT( mbedtls_mpi_read_string( &Y, 16, y ) == 0 ); 254 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &P.Y, &Y ) == 0 ); 260 mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); mbedtls_mpi_free( &Z ); [all …]
|
D | test_suite_ecdh.function | 102 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &qA.Y, &check ) == 0 ); 110 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &qB.Y, &check ) == 0 );
|
D | test_suite_debug.data | 46 … 5f 17 24 62 48 fc 1a 95 29 ce 2c 2d\nMyFile(0999)\: value of 'crt->eckey.Q(Y)' (384 bits) is\:\nM…
|
/net-tools-3.7.0/mbedtls-2.4.0/programs/pkey/ |
D | mpi_demo.c | 51 mbedtls_mpi E, P, Q, N, H, D, X, Y, Z; in main() local 54 mbedtls_mpi_init( &H ); mbedtls_mpi_init( &D ); mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); in main() 82 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Y, &X, &E, &N, NULL ) ); in main() 83 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Z, &Y, &D, &N, NULL ) ); in main() 87 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( " Y (ciphertext) = X^E mod N = ", &Y, 10, NULL ) ); in main() 93 mbedtls_mpi_free( &H ); mbedtls_mpi_free( &D ); mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); in main()
|
D | key_app.c | 208 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main() 252 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main()
|
D | key_app_writer.c | 319 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main() 366 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main()
|
D | gen_key.c | 380 mbedtls_mpi_write_file( "Y_Q: ", &ecp->Q.Y, 16, NULL ); in main()
|
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/ |
D | bignum.h | 199 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 207 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 226 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); 245 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign ); 428 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y ); 440 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
|
D | ecp.h | 100 mbedtls_mpi Y; /*!< the point's Y coordinate */ member
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/data_files/ |
D | crl_md2.pem | 6 ygyd5+RW/Y//vpck44V+CYx1d1r+QkauaXel9qUKBPsg2dUwQ+jwV/m+Sp2MHaX5
|
D | pkcs8_pbe_sha1_2des.key | 4 XDjWATXHbgTX82I3T8R2iBnv6Za9uaFDtDH5gbUYSrSNzMaoyS90hc9PTJ2+TG/Y
|
D | server7_all_space.crt | 40 updQ66cvfCJB0QJt9upafY0lpdV1qUkCAwEAAaOBoDCBnTAdBgNVHQ4EFgQUOHf Y
|
D | server10_int3_int-ca2.crt | 19 CgYIKoZIzj0EAwIDaQAwZgIxAJ9RX38bht+RNsQI2GUpNhC/Y+Tb1OU74O4iEa6+
|
D | server10_int3_int-ca2_ca.crt | 19 CgYIKoZIzj0EAwIDaQAwZgIxAJ9RX38bht+RNsQI2GUpNhC/Y+Tb1OU74O4iEa6+
|
/net-tools-3.7.0/ |
D | ca.crt | 9 Y/D+nPT6gwTAgeVttLVVaFMo45F4hgtyUwm2vVxOsaTzs99VS0RK1wLUhcMGIwRw
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/data_files/dir4/ |
D | cert12.crt | 5 BQADggEPADCCAQoCggEBANJrP7/Y+KjupvlgaOmQYArfGuoh3CzcdPe/mlhq+fxD
|