/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() 73 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &H, &P, &Q ) ); in main() 74 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &D, &E, &H ) ); in main() 93 mbedtls_mpi_free( &H ); mbedtls_mpi_free( &D ); mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); in main()
|
/net-tools-3.7.0/libcoap/include/coap/ |
D | hashkey.h | 51 #define coap_str_hash(Str,H) { \ argument 53 memset((H), 0, sizeof(coap_key_t)); \ 54 coap_hash((Str)->s, (Str)->length, (H)); \
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_pkcs1_v15.function | 65 mbedtls_mpi P1, Q1, H, G; 70 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 86 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 87 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); 88 TEST_ASSERT( mbedtls_mpi_inv_mod( &ctx.D , &ctx.E, &H ) == 0 ); 106 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G ); 124 mbedtls_mpi P1, Q1, H, G; 131 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 147 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); [all …]
|
D | test_suite_pkcs1_v21.function | 65 mbedtls_mpi P1, Q1, H, G; 70 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 86 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 87 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); 88 TEST_ASSERT( mbedtls_mpi_inv_mod( &ctx.D , &ctx.E, &H ) == 0 ); 106 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G ); 124 mbedtls_mpi P1, Q1, H, G; 131 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 147 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); [all …]
|
D | test_suite_rsa.function | 29 mbedtls_mpi P1, Q1, H, G; 33 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 50 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 51 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); 52 TEST_ASSERT( mbedtls_mpi_inv_mod( &ctx.D , &ctx.E, &H ) == 0 ); 73 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G ); 126 mbedtls_mpi P1, Q1, H, G; 130 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 147 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 ); [all …]
|
D | test_suite_pk.function | 333 mbedtls_mpi P1, Q1, H, G; 338 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); 361 TEST_ASSERT( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) == 0 ); 362 TEST_ASSERT( mbedtls_mpi_gcd( &G, &rsa->E, &H ) == 0 ); 363 TEST_ASSERT( mbedtls_mpi_inv_mod( &rsa->D , &rsa->E, &H ) == 0 ); 381 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G );
|
/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | sha512.c | 203 uint64_t A, B, C, D, E, F, G, H; in mbedtls_sha512_process() local 242 H = ctx->state[7]; in mbedtls_sha512_process() 247 P( A, B, C, D, E, F, G, H, W[i], K[i] ); i++; in mbedtls_sha512_process() 248 P( H, A, B, C, D, E, F, G, W[i], K[i] ); i++; in mbedtls_sha512_process() 249 P( G, H, A, B, C, D, E, F, W[i], K[i] ); i++; in mbedtls_sha512_process() 250 P( F, G, H, A, B, C, D, E, W[i], K[i] ); i++; in mbedtls_sha512_process() 251 P( E, F, G, H, A, B, C, D, W[i], K[i] ); i++; in mbedtls_sha512_process() 252 P( D, E, F, G, H, A, B, C, W[i], K[i] ); i++; in mbedtls_sha512_process() 253 P( C, D, E, F, G, H, A, B, W[i], K[i] ); i++; in mbedtls_sha512_process() 254 P( B, C, D, E, F, G, H, A, W[i], K[i] ); i++; in mbedtls_sha512_process() [all …]
|
D | rsa.c | 100 mbedtls_mpi P1, Q1, H, G; in mbedtls_rsa_gen_key() local 109 mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G ); in mbedtls_rsa_gen_key() 137 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) ); in mbedtls_rsa_gen_key() 138 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, &ctx->E, &H ) ); in mbedtls_rsa_gen_key() 148 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &ctx->D , &ctx->E, &H ) ); in mbedtls_rsa_gen_key() 157 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G ); in mbedtls_rsa_gen_key() 199 mbedtls_mpi PQ, DE, P1, Q1, H, I, G, G2, L1, L2, DP, DQ, QP; in mbedtls_rsa_check_privkey() local 208 …mbedtls_mpi_init( &H ); mbedtls_mpi_init( &I ); mbedtls_mpi_init( &G ); mbedtls_mpi_init( &G2 ); in mbedtls_rsa_check_privkey() 216 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &H, &P1, &Q1 ) ); in mbedtls_rsa_check_privkey() 217 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, &ctx->E, &H ) ); in mbedtls_rsa_check_privkey() [all …]
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/data_files/dir4/ |
D | cert44.crt | 15 Nxu2opuN3+KDwDYO32CUp3frr9OjAtB5amZnkXau+C1EkJlSuWaT+/gIlYwlr4/H
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/data_files/ |
D | rsa4096_prv.pem | 33 BKKe44fbOk/qUlZG1D6O6/H/OMT4TMyYgaswy0QuMHTjOBXrkAmVSch5dwo0eoxx
|
/net-tools-3.7.0/tinydtls-0.8.2/ |
D | dtls.c | 54 #define dtls_set_version(H,V) dtls_int_to_uint16((H)->version, (V)) argument 55 #define dtls_set_content_type(H,V) ((H)->content_type = (V) & 0xff) argument 56 #define dtls_set_length(H,V) ((H)->length = (V)) argument 58 #define dtls_get_content_type(H) ((H)->content_type & 0xff) argument 59 #define dtls_get_version(H) dtls_uint16_to_int((H)->version) argument 60 #define dtls_get_epoch(H) dtls_uint16_to_int((H)->epoch) argument 61 #define dtls_get_sequence_number(H) dtls_uint48_to_ulong((H)->sequence_number) argument 62 #define dtls_get_fragment_length(H) dtls_uint24_to_int((H)->fragment_length) argument
|
/net-tools-3.7.0/mbedtls-2.4.0/ |
D | ChangeLog | 9 TLS" - H. Bock, A. Zauner, S. Devlin, J. Somorovsky, P. Jovanovic.
|