Home
last modified time | relevance | path

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

12

/openthread-3.5.0/third_party/mbedtls/repo/library/
Decjpake.c188 const mbedtls_ecp_point *G, in ecjpake_hash() argument
202 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, G ) ); in ecjpake_hash()
236 const mbedtls_ecp_point *G, in ecjpake_zkp_read() argument
283 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
285 &VV, &h, X, &r, G ) ); in ecjpake_zkp_read()
308 const mbedtls_ecp_point *G, in ecjpake_zkp_write() argument
332 G, &v, &V, f_rng, p_rng ) ); in ecjpake_zkp_write()
333 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
369 const mbedtls_ecp_point *G, in ecjpake_kkp_read() argument
393 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
[all …]
Decp_curves.c578 ecp_mpi_load( &grp->G.X, gx, gxlen ); in ecp_group_load()
579 ecp_mpi_load( &grp->G.Y, gy, gylen ); in ecp_group_load()
580 ecp_mpi_set1( &grp->G.Z ); in ecp_group_load()
632 #define LOAD_GROUP_A( G ) ecp_group_load( grp, \ argument
633 G ## _p, sizeof( G ## _p ), \
634 G ## _a, sizeof( G ## _a ), \
635 G ## _b, sizeof( G ## _b ), \
636 G ## _gx, sizeof( G ## _gx ), \
637 G ## _gy, sizeof( G ## _gy ), \
638 G ## _n, sizeof( G ## _n ) )
[all …]
Ddhm.c140 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params()
195 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in dhm_make_common()
240 n2 = mbedtls_mpi_size( &ctx->G ); in mbedtls_dhm_make_params()
245 DHM_MPI_EXPORT( &ctx->G , n2 ); in mbedtls_dhm_make_params()
263 const mbedtls_mpi *G ) in mbedtls_dhm_set_group() argument
268 DHM_VALIDATE_RET( G != NULL ); in mbedtls_dhm_set_group()
271 ( ret = mbedtls_mpi_copy( &ctx->G, G ) ) != 0 ) in mbedtls_dhm_set_group()
470 mbedtls_mpi_free( &ctx->G ); in mbedtls_dhm_free()
538 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
Dpkparse.c345 if( ( ret = mbedtls_ecp_point_read_binary( grp, &grp->G, in pk_group_from_specified()
355 mbedtls_mpi_read_binary( &grp->G.X, p + 1, len - 1 ) != 0 || in pk_group_from_specified()
356 mbedtls_mpi_lset( &grp->G.Y, p[0] - 2 ) != 0 || in pk_group_from_specified()
357 mbedtls_mpi_lset( &grp->G.Z, 1 ) != 0 ) in pk_group_from_specified()
404 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group()
405 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group()
407 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group()
969 ( ret = mbedtls_ecp_mul( &eck->grp, &eck->Q, &eck->d, &eck->grp.G, in pk_parse_key_sec1_der()
Decp.c662 if( grp->G.X.p == NULL ) in mbedtls_ecp_get_type()
665 if( grp->G.Y.p == NULL ) in mbedtls_ecp_get_type()
694 mbedtls_ecp_point_init( &grp->G ); in mbedtls_ecp_group_init()
747 mbedtls_ecp_point_free( &grp->G ); in mbedtls_ecp_group_free()
2310 p_eq_g = ( mbedtls_mpi_cmp_mpi( &P->Y, &grp->G.Y ) == 0 && in ecp_mul_comb()
2311 mbedtls_mpi_cmp_mpi( &P->X, &grp->G.X ) == 0 ); in ecp_mul_comb()
3193 const mbedtls_ecp_point *G, in mbedtls_ecp_gen_keypair_base() argument
3201 ECP_VALIDATE_RET( G != NULL ); in mbedtls_ecp_gen_keypair_base()
3206 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair_base()
3225 return( mbedtls_ecp_gen_keypair_base( grp, &grp->G, d, Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair()
[all …]
Dpsa_crypto_ecp.c222 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in mbedtls_psa_ecp_export_key()
453 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in mbedtls_psa_ecdsa_verify_hash()
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_dhm.data82 Diffie-Hellman with G=0
85 Diffie-Hellman with G=1
88 Diffie-Hellman with G=-1
91 Diffie-Hellman with G=P-1
94 Diffie-Hellman with G=P-2
97 Diffie-Hellman with G=P
100 Diffie-Hellman with G=P+1
103 Diffie-Hellman with G=P+2
Dtest_suite_dhm.function51 /* Check ske: it must contain P, G and G^X, each prefixed with a
55 if( !check_dhm_param_output( &ctx->G, ske, ske_len, &offset ) )
210 TEST_ASSERT( mbedtls_test_read_mpi( &ctx_srv.G, radix_G, input_G ) == 0 );
298 mbedtls_mpi P, G;
303 mbedtls_mpi_init( &G );
310 TEST_ASSERT( mbedtls_test_read_mpi( &G, radix_G, input_G ) == 0 );
312 TEST_ASSERT( mbedtls_dhm_set_group( &ctx, &P, &G ) == 0 );
320 mbedtls_mpi_free( &G );
329 mbedtls_mpi P, G;
332 mbedtls_mpi_init( &P ); mbedtls_mpi_init( &G );
[all …]
Dtest_suite_ecp.function471 ret = mbedtls_ecp_mul_restartable( &grp, &R, &dA, &grp.G, NULL, NULL, &ctx );
520 * Compute R = u1 * G + u2 * Q
556 &u1, &grp.G, &u2, &Q, &ctx );
571 &u1, &grp.G, &u2, &Q, &ctx );
602 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &grp.G ) == 0 );
613 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G,
623 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, NULL, NULL ) == 0 );
657 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &grp.G ) == 0 );
665 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G,
675 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &grp.G, NULL, NULL ) == 0 );
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/programs/pkey/
Ddh_genprime.c75 mbedtls_mpi G, P, Q; in main() local
84 mbedtls_mpi_init( &G ); mbedtls_mpi_init( &P ); mbedtls_mpi_init( &Q ); in main()
112 if( ( ret = mbedtls_mpi_read_string( &G, 10, GENERATOR ) ) != 0 ) in main()
175 ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) in main()
189 mbedtls_mpi_free( &G ); mbedtls_mpi_free( &P ); mbedtls_mpi_free( &Q ); in main()
Ddh_prime.txt2 G = 02
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/
Ddhm.h115 mbedtls_mpi G; /*!< The generator. */ member
218 const mbedtls_mpi *G );
Decp.h268 mbedtls_ecp_point G; /*!< The generator of the subgroup used. */ member
1185 const mbedtls_ecp_point *G,
/openthread-3.5.0/tools/harness-automation/doc/
Dcomponents.gv1 digraph G {
/openthread-3.5.0/third_party/mbedtls/repo/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
/openthread-3.5.0/third_party/mbedtls/repo/tests/data_files/
Drsa_pkcs1_1024_aes192.pem15 Tk/G/dS0t41QJuaW1sv9DkJJcl1696PSI4ysDJx9Y8LtV1+DzvdlxSyJdg3mJHEL
Dserver2.key8 ++AtOg6eENxD+xVs0f1IeGz57Tjo3QnXX7VBZNdj+p1ECvhCE/G7XnkgU5hLZX+G
Dserver7_all_space.crt4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G
Dserver7_pem_space.crt4 ZWRpYXRlIENBMB4XDTEzMDkyNDE2MTIyNFoXDTIzMDkyMjE2MTIyNFowNDELMAk G
Drsa_pkcs1_2048_3des.pem11 8FGAP9ft1m5DMBbAYBUhZHlSFZ/9G/gWa/VskSmjniq83+RO24fXoTxYUx716z4S
Drsa_pkcs8_pbes2_pbkdf2_4096_des_sha384.pem4 G+i8Eem50G7EdQNLsIkCG8Qgu/IplVx7MyGLd3FUmPpSVnEsxvfk3rRJb8NDnm9m
Drsa_pkcs1_4096_aes256.pem53 B5e3w69NVD9d8cKHz/M7ld5O9B0o+G+/yrDkAokJuGACHjqhEzhBfpDO1orNb7Sj
Drsa_pkcs8_pbes2_pbkdf2_4096_3des.pem7 GRexE5rzhI+jSctBnGL1t8IhUbceBnLjAIDRyNrQFnDypzAMrV/Wqtvf3H8o7m/G

12