Lines Matching refs:ecdh
243 rsa, dhm, ecdsa, ecdh; member
311 todo.ecdh = 1; in main()
765 if( todo.ecdh ) in main()
767 mbedtls_ecdh_context ecdh; in main() local
778 mbedtls_ecdh_init( &ecdh ); in main()
780 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
781 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
783 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main()
787 ecp_clear_precomputed( &ecdh.grp ); in main()
792 ret |= mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
794 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
796 mbedtls_ecdh_free( &ecdh ); in main()
801 mbedtls_ecdh_init( &ecdh ); in main()
804 if( mbedtls_ecp_group_load( &ecdh.grp, MBEDTLS_ECP_DP_CURVE25519 ) != 0 || in main()
805 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main()
811 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main()
813 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main()
816 mbedtls_ecdh_free( &ecdh ); in main()
824 mbedtls_ecdh_init( &ecdh ); in main()
826 if( mbedtls_ecp_group_load( &ecdh.grp, curve_info->grp_id ) != 0 || in main()
827 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
829 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main()
830 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
835 ecp_clear_precomputed( &ecdh.grp ); in main()
840 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
842 mbedtls_ecdh_free( &ecdh ); in main()
847 mbedtls_ecdh_init( &ecdh ); in main()
850 if( mbedtls_ecp_group_load( &ecdh.grp, MBEDTLS_ECP_DP_CURVE25519 ) != 0 || in main()
851 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main()
853 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main()
859 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main()
862 mbedtls_ecdh_free( &ecdh ); in main()