Lines Matching refs:ecdh

258          rsa, dhm, ecdsa, ecdh;  member
348 todo.ecdh = 1; in main()
882 if( todo.ecdh ) in main()
884 mbedtls_ecdh_context ecdh; in main() local
902 mbedtls_ecdh_init( &ecdh ); in main()
904 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
905 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
907 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main()
911 ecp_clear_precomputed( &ecdh.grp ); in main()
916 ret |= mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
918 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
920 mbedtls_ecdh_free( &ecdh ); in main()
928 mbedtls_ecdh_init( &ecdh ); in main()
931 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
932 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main()
940 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main()
942 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main()
945 mbedtls_ecdh_free( &ecdh ); in main()
953 mbedtls_ecdh_init( &ecdh ); in main()
955 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
956 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
958 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main()
959 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
964 ecp_clear_precomputed( &ecdh.grp ); in main()
969 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
971 mbedtls_ecdh_free( &ecdh ); in main()
979 mbedtls_ecdh_init( &ecdh ); in main()
982 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
983 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main()
985 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main()
993 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main()
996 mbedtls_ecdh_free( &ecdh ); in main()