Home
last modified time | relevance | path

Searched refs:G (Results 1 – 25 of 35) sorted by relevance

12

/net-tools-3.5.0/mbedtls-2.4.0/library/
Decjpake.c181 const mbedtls_ecp_point *G, in ecjpake_hash() argument
195 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, G ) ); in ecjpake_hash()
231 const mbedtls_ecp_point *G, in ecjpake_zkp_read() argument
278 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
280 &VV, &h, X, &r, G ) ); in ecjpake_zkp_read()
303 const mbedtls_ecp_point *G, in ecjpake_zkp_write() argument
327 G, &v, &V, f_rng, p_rng ) ); in ecjpake_zkp_write()
328 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
364 const mbedtls_ecp_point *G, in ecjpake_kkp_read() argument
388 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
[all …]
Decp_curves.c589 ecp_mpi_load( &grp->G.X, gx, gxlen ); in ecp_group_load()
590 ecp_mpi_load( &grp->G.Y, gy, gylen ); in ecp_group_load()
591 ecp_mpi_set1( &grp->G.Z ); in ecp_group_load()
638 #define LOAD_GROUP_A( G ) ecp_group_load( grp, \ argument
639 G ## _p, sizeof( G ## _p ), \
640 G ## _a, sizeof( G ## _a ), \
641 G ## _b, sizeof( G ## _b ), \
642 G ## _gx, sizeof( G ## _gx ), \
643 G ## _gy, sizeof( G ## _gy ), \
644 G ## _n, sizeof( G ## _n ) )
[all …]
Dsha512.c203 uint64_t A, B, C, D, E, F, G, H; in mbedtls_sha512_process() local
241 G = ctx->state[6]; 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 …]
Ddhm.c136 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params()
181 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in mbedtls_dhm_make_params()
196 n2 = mbedtls_mpi_size( &ctx->G ); in mbedtls_dhm_make_params()
201 DHM_MPI_EXPORT( &ctx->G , n2 ); in mbedtls_dhm_make_params()
264 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in mbedtls_dhm_make_public()
405 mbedtls_mpi_free( &ctx->GX ); mbedtls_mpi_free( &ctx->X ); mbedtls_mpi_free( &ctx->G ); in mbedtls_dhm_free()
468 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
Dpkparse.c331 if( ( ret = mbedtls_ecp_point_read_binary( grp, &grp->G, in pk_group_from_specified()
341 mbedtls_mpi_read_binary( &grp->G.X, p + 1, len - 1 ) != 0 || in pk_group_from_specified()
342 mbedtls_mpi_lset( &grp->G.Y, p[0] - 2 ) != 0 || in pk_group_from_specified()
343 mbedtls_mpi_lset( &grp->G.Z, 1 ) != 0 ) in pk_group_from_specified()
390 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group()
391 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group()
393 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group()
828 ( ret = mbedtls_ecp_mul( &eck->grp, &eck->Q, &eck->d, &eck->grp.G, in pk_parse_key_sec1_der()
Drsa.c100 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()
138 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, &ctx->E, &H ) ); in mbedtls_rsa_gen_key()
140 while( mbedtls_mpi_cmp_int( &G, 1 ) != 0 ); 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()
217 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, &ctx->E, &H ) ); in mbedtls_rsa_check_privkey()
235 mbedtls_mpi_cmp_int( &G, 1 ) != 0 ) in mbedtls_rsa_check_privkey()
242 …mbedtls_mpi_free( &H ); mbedtls_mpi_free( &I ); mbedtls_mpi_free( &G ); mbedtls_mpi_free( &G2 ); in mbedtls_rsa_check_privkey()
Decp.c259 if( grp->G.X.p == NULL ) in ecp_get_type()
262 if( grp->G.Y.p == NULL ) in ecp_get_type()
333 mbedtls_ecp_point_free( &grp->G ); in mbedtls_ecp_group_free()
1341 p_eq_g = ( mbedtls_mpi_cmp_mpi( &P->Y, &grp->G.Y ) == 0 && in ecp_mul_comb()
1342 mbedtls_mpi_cmp_mpi( &P->X, &grp->G.X ) == 0 ); in ecp_mul_comb()
1816 const mbedtls_ecp_point *G, in mbedtls_ecp_gen_keypair_base() argument
1891 return( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair_base()
1902 return( mbedtls_ecp_gen_keypair_base( grp, &grp->G, d, Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair()
1944 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &Q, &prv->d, &prv->grp.G, NULL, NULL ) ); in mbedtls_ecp_check_pub_priv()
2002 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &P, &m, &grp.G, NULL, NULL ) ); in mbedtls_ecp_self_test()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/
Ddh_genprime.c72 mbedtls_mpi G, P, Q; in main() local
81 mbedtls_mpi_init( &G ); mbedtls_mpi_init( &P ); mbedtls_mpi_init( &Q ); in main()
109 if( ( ret = mbedtls_mpi_read_string( &G, 10, GENERATOR ) ) != 0 ) in main()
173 ( 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()
Ddh_prime.txt2 G = 02
Ddh_server.c160 mbedtls_mpi_read_file( &dhm.G, 16, f ) != 0 ) in main()
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_dhm.function40 TEST_ASSERT( mbedtls_mpi_read_string( &ctx_srv.G, radix_G, input_G ) == 0 );
103 mbedtls_mpi P, G;
106 mbedtls_mpi_init( &P ); mbedtls_mpi_init( &G );
109 TEST_ASSERT( mbedtls_mpi_read_string( &G, 16, g ) == 0 );
115 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &ctx.G, &G ) == 0 );
118 mbedtls_mpi_free( &P ); mbedtls_mpi_free( &G );
Dtest_suite_pkcs1_v15.function65 mbedtls_mpi P1, Q1, H, G;
70 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G );
87 TEST_ASSERT( mbedtls_mpi_gcd( &G, &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 );
148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 );
170 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G );
Dtest_suite_pkcs1_v21.function65 mbedtls_mpi P1, Q1, H, G;
70 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G );
87 TEST_ASSERT( mbedtls_mpi_gcd( &G, &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 );
148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 );
170 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G );
Dtest_suite_rsa.function29 mbedtls_mpi P1, Q1, H, G;
33 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G );
51 TEST_ASSERT( mbedtls_mpi_gcd( &G, &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 );
148 TEST_ASSERT( mbedtls_mpi_gcd( &G, &ctx.E, &H ) == 0 );
181 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G );
326 mbedtls_mpi P1, Q1, H, G;
330 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G );
[all …]
Dtest_suite_ecp.function70 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &grp.G ) == 0 );
81 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G,
91 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, NULL, NULL ) == 0 );
125 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &grp.G ) == 0 );
133 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G,
143 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, NULL, NULL ) == 0 );
319 TEST_ASSERT( mbedtls_ecp_tls_write_point( &grp, &grp.G,
326 TEST_ASSERT( mbedtls_ecp_tls_write_point( &grp, &grp.G,
329 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &grp.G.X, &pt.X ) == 0 );
330 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &grp.G.Y, &pt.Y ) == 0 );
[all …]
Dtest_suite_pk.function333 mbedtls_mpi P1, Q1, H, G;
338 … mbedtls_mpi_init( &P1 ); mbedtls_mpi_init( &Q1 ); mbedtls_mpi_init( &H ); mbedtls_mpi_init( &G );
362 TEST_ASSERT( mbedtls_mpi_gcd( &G, &rsa->E, &H ) == 0 );
381 … mbedtls_mpi_free( &P1 ); mbedtls_mpi_free( &Q1 ); mbedtls_mpi_free( &H ); mbedtls_mpi_free( &G );
/net-tools-3.5.0/mbedtls-2.4.0/tests/data_files/dir4/
Dcert23.crt7 FiFrrUL0MNgiGxjkTthWgsfV4C/i3vRDTCW+2UMFdd6+z7hwFf+ldTsCP9Qp+93G
Dcert42.crt15 1lO/MiwxhTTluHPGkl/nBG+uxySInuQMDvdyQDXp2e17qxops+G+1UnRJinqLtsd
Dcert52.crt15 1lO/MiwxhTTluHPGkl/nBG+uxySInuQMDvdyQDXp2e17qxops+G+1UnRJinqLtsd
/net-tools-3.5.0/
Dca.crt13 9uUHhR05Rf4Sgyji18d/G/yJMlzfBvn8BqSXb+45kQ4pP/YykMcVElYaYm444Nte
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Decp.h135 mbedtls_ecp_point G; /*!< generator of the (sub)group used */ member
605 const mbedtls_ecp_point *G,
Ddhm.h153 mbedtls_mpi G; /*!< generator */ member
/net-tools-3.5.0/mbedtls-2.4.0/tests/data_files/
Dserver2.key8 ++AtOg6eENxD+xVs0f1IeGz57Tjo3QnXX7VBZNdj+p1ECvhCE/G7XnkgU5hLZX+G
Dserver7_all_space.crt4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G
Dserver7_pem_space.crt4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G

12