/mbedtls-development/library/ |
A D | ecjpake.c | 202 const mbedtls_ecp_point *G, in ecjpake_hash() argument 299 &VV, &h, X, &r, G ) ); in ecjpake_zkp_read() 528 &ctx->grp.G, in mbedtls_ecjpake_read_round_one() 547 &ctx->grp.G, in mbedtls_ecjpake_write_round_one() 586 mbedtls_ecp_point G; /* C: GB, S: GA */ in mbedtls_ecjpake_read_round_two() local 592 mbedtls_ecp_point_init( &G ); in mbedtls_ecjpake_read_round_two() 600 MBEDTLS_MPI_CHK( ecjpake_ecp_add3( &ctx->grp, &G, in mbedtls_ecjpake_read_round_two() 631 mbedtls_ecp_point_free( &G ); in mbedtls_ecjpake_read_round_two() 676 mbedtls_ecp_point G; /* C: GA, S: GB */ in mbedtls_ecjpake_write_round_two() local 688 mbedtls_ecp_point_init( &G ); in mbedtls_ecjpake_write_round_two() [all …]
|
A D | dhm.c | 148 src = &ctx->G; in mbedtls_dhm_get_value() 181 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params() 234 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in dhm_make_common() 279 n2 = mbedtls_mpi_size( &ctx->G ); in mbedtls_dhm_make_params() 284 DHM_MPI_EXPORT( &ctx->G , n2 ); in mbedtls_dhm_make_params() 300 const mbedtls_mpi *G ) in mbedtls_dhm_set_group() argument 305 DHM_VALIDATE_RET( G != NULL ); in mbedtls_dhm_set_group() 308 ( ret = mbedtls_mpi_copy( &ctx->G, G ) ) != 0 ) in mbedtls_dhm_set_group() 501 mbedtls_mpi_free( &ctx->G ); in mbedtls_dhm_free() 569 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
|
A D | ecp_curves.c | 4610 G ## _p, sizeof( G ## _p ), \ 4611 G ## _a, sizeof( G ## _a ), \ 4612 G ## _b, sizeof( G ## _b ), \ 4613 G ## _gx, sizeof( G ## _gx ), \ 4614 G ## _gy, sizeof( G ## _gy ), \ 4615 G ## _n, sizeof( G ## _n ), \ 4620 G ## _p, sizeof( G ## _p ), \ 4622 G ## _b, sizeof( G ## _b ), \ 4623 G ## _gx, sizeof( G ## _gx ), \ 4624 G ## _gy, sizeof( G ## _gy ), \ [all …]
|
A D | pkparse.c | 346 if( ( ret = mbedtls_ecp_point_read_binary( grp, &grp->G, in pk_group_from_specified() 356 mbedtls_mpi_read_binary( &grp->G.X, p + 1, len - 1 ) != 0 || in pk_group_from_specified() 357 mbedtls_mpi_lset( &grp->G.Y, p[0] - 2 ) != 0 || in pk_group_from_specified() 358 mbedtls_mpi_lset( &grp->G.Z, 1 ) != 0 ) in pk_group_from_specified() 405 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group() 406 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group() 408 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group() 970 ( ret = mbedtls_ecp_mul( &eck->grp, &eck->Q, &eck->d, &eck->grp.G, in pk_parse_key_sec1_der()
|
A D | ecp.c | 502 if( grp->G.X.p == NULL ) in mbedtls_ecp_get_type() 505 if( grp->G.Y.p == NULL ) in mbedtls_ecp_get_type() 534 mbedtls_ecp_point_init( &grp->G ); in mbedtls_ecp_group_init() 599 mbedtls_ecp_point_free( &grp->G ); in mbedtls_ecp_group_free() 2130 p_eq_g = ( mbedtls_mpi_cmp_mpi( &P->Y, &grp->G.Y ) == 0 && in ecp_mul_comb() 2131 mbedtls_mpi_cmp_mpi( &P->X, &grp->G.X ) == 0 ); in ecp_mul_comb() 3004 const mbedtls_ecp_point *G, in mbedtls_ecp_gen_keypair_base() argument 3012 ECP_VALIDATE_RET( G != NULL ); in mbedtls_ecp_gen_keypair_base() 3017 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair_base() 3399 &grp, &R, &m, &grp.G, in mbedtls_ecp_self_test() [all …]
|
A D | bignum.c | 2535 int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_gcd() argument 2541 MPI_VALIDATE_RET( G != NULL ); in mbedtls_mpi_gcd() 2559 ret = mbedtls_mpi_copy( G, A ); in mbedtls_mpi_gcd() 2637 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( G, &TB ) ); in mbedtls_mpi_gcd() 2782 mbedtls_mpi G, TA, TU, U1, U2, TB, TV, V1, V2; in mbedtls_mpi_inv_mod() local 2791 mbedtls_mpi_init( &G ); mbedtls_mpi_init( &TB ); mbedtls_mpi_init( &TV ); in mbedtls_mpi_inv_mod() 2794 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, A, N ) ); in mbedtls_mpi_inv_mod() 2796 if( mbedtls_mpi_cmp_int( &G, 1 ) != 0 ) in mbedtls_mpi_inv_mod() 2868 mbedtls_mpi_free( &G ); mbedtls_mpi_free( &TB ); mbedtls_mpi_free( &TV ); in mbedtls_mpi_inv_mod()
|
/mbedtls-development/tests/suites/ |
A D | test_suite_dhm.function | 68 /* Check ske: it must contain P, G and G^X, each prefixed with a 72 if( !check_dhm_param_output( &ctx->G, ske, ske_len, &offset ) ) 230 mbedtls_mpi P, G; 235 mbedtls_mpi_init( &G ); 244 TEST_ASSERT( mbedtls_dhm_set_group( &ctx, &P, &G ) == 0 ); 252 mbedtls_mpi_free( &G ); 261 mbedtls_mpi P, G; 264 mbedtls_mpi_init( &P ); mbedtls_mpi_init( &G ); 267 TEST_ASSERT( mbedtls_test_read_mpi( &G, 16, g ) == 0 ); 274 TEST_ASSERT( check_get_value( &ctx, MBEDTLS_DHM_PARAM_G, &G ) ); [all …]
|
A D | test_suite_dhm.data | 79 Diffie-Hellman with G=0 82 Diffie-Hellman with G=1 85 Diffie-Hellman with G=-1 88 Diffie-Hellman with G=P-1 91 Diffie-Hellman with G=P-2 94 Diffie-Hellman with G=P 97 Diffie-Hellman with G=P+1 100 Diffie-Hellman with G=P+2
|
A D | test_suite_ecp.function | 152 ret = mbedtls_ecp_mul_restartable( &grp, &R, &dA, &grp.G, 204 * Compute R = u1 * G + u2 * Q 297 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G, 308 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, 351 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G, 361 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, 445 TEST_ASSERT( mbedtls_ecp_mul( &grp, &Q, &d, &grp.G, 661 TEST_ASSERT( mbedtls_ecp_tls_write_point( &grp, &grp.G, 668 TEST_ASSERT( mbedtls_ecp_tls_write_point( &grp, &grp.G, 671 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &grp.G.X, &pt.X ) == 0 ); [all …]
|
/mbedtls-development/programs/pkey/ |
A D | dh_genprime.c | 71 mbedtls_mpi G, P, Q; in main() local 80 mbedtls_mpi_init( &G ); mbedtls_mpi_init( &P ); mbedtls_mpi_init( &Q ); in main() 108 if( ( ret = mbedtls_mpi_read_string( &G, 10, GENERATOR ) ) != 0 ) in main() 171 ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) in main() 185 mbedtls_mpi_free( &G ); mbedtls_mpi_free( &P ); mbedtls_mpi_free( &Q ); in main()
|
A D | dh_prime.txt | 2 G = 02
|
/mbedtls-development/include/mbedtls/ |
A D | dhm.h | 117 mbedtls_mpi MBEDTLS_PRIVATE(G); /*!< The generator. */ 220 const mbedtls_mpi *G );
|
A D | ecp.h | 235 mbedtls_ecp_point G; /*!< The generator of the subgroup used. */ member 1167 const mbedtls_ecp_point *G,
|
/mbedtls-development/tests/include/alt-dummy/ |
A D | ecp_alt.h | 28 const mbedtls_ecp_point G; member
|
/mbedtls-development/tests/data_files/dir4/ |
A D | cert23.crt | 7 FiFrrUL0MNgiGxjkTthWgsfV4C/i3vRDTCW+2UMFdd6+z7hwFf+ldTsCP9Qp+93G
|
A D | cert42.crt | 15 1lO/MiwxhTTluHPGkl/nBG+uxySInuQMDvdyQDXp2e17qxops+G+1UnRJinqLtsd
|
A D | cert52.crt | 15 1lO/MiwxhTTluHPGkl/nBG+uxySInuQMDvdyQDXp2e17qxops+G+1UnRJinqLtsd
|
/mbedtls-development/tests/data_files/ |
A D | rsa_pkcs1_1024_aes192.pem | 15 Tk/G/dS0t41QJuaW1sv9DkJJcl1696PSI4ysDJx9Y8LtV1+DzvdlxSyJdg3mJHEL
|
A D | server2.key | 8 ++AtOg6eENxD+xVs0f1IeGz57Tjo3QnXX7VBZNdj+p1ECvhCE/G7XnkgU5hLZX+G
|
A D | server7_all_space.crt | 4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G
|
A D | server7_pem_space.crt | 4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G
|
A D | rsa_pkcs1_2048_3des.pem | 11 8FGAP9ft1m5DMBbAYBUhZHlSFZ/9G/gWa/VskSmjniq83+RO24fXoTxYUx716z4S
|
A D | rsa_pkcs8_pbes2_pbkdf2_4096_des_sha384.pem | 4 G+i8Eem50G7EdQNLsIkCG8Qgu/IplVx7MyGLd3FUmPpSVnEsxvfk3rRJb8NDnm9m
|
A D | rsa_pkcs8_pbes2_pbkdf2_4096_3des.pem | 7 GRexE5rzhI+jSctBnGL1t8IhUbceBnLjAIDRyNrQFnDypzAMrV/Wqtvf3H8o7m/G
|
A D | rsa_pkcs1_4096_aes256.pem | 53 B5e3w69NVD9d8cKHz/M7ld5O9B0o+G+/yrDkAokJuGACHjqhEzhBfpDO1orNb7Sj
|