Lines Matching refs:ecdh

285 	     havege, ctr_drbg, hmac_drbg, rsa, dhm, ecdsa, ecdh;  member
875 if (todo.ecdh) { in main()
876 mbedtls_ecdh_context ecdh; in main() local
893 mbedtls_ecdh_init(&ecdh); in main()
895 if (mbedtls_ecp_group_load(&ecdh.grp, in main()
897 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
900 mbedtls_ecp_copy(&ecdh.Qp, &ecdh.Q) != 0) { in main()
904 ecp_clear_precomputed(&ecdh.grp); in main()
910 ret |= mbedtls_ecdh_make_public(&ecdh, in main()
913 ret |= mbedtls_ecdh_calc_secret(&ecdh, in main()
916 mbedtls_ecdh_free(&ecdh); in main()
923 mbedtls_ecdh_init(&ecdh); in main()
926 if (mbedtls_ecp_group_load(&ecdh.grp, in main()
928 mbedtls_ecdh_gen_public(&ecdh.grp, &ecdh.d, in main()
929 &ecdh.Qp, myrand, NULL) in main()
938 ret |= mbedtls_ecdh_gen_public(&ecdh.grp, in main()
939 &ecdh.d, in main()
940 &ecdh.Q, in main()
944 &ecdh.grp, &z, in main()
945 &ecdh.Qp, in main()
946 &ecdh.d, in main()
949 mbedtls_ecdh_free(&ecdh); in main()
956 mbedtls_ecdh_init(&ecdh); in main()
958 if (mbedtls_ecp_group_load(&ecdh.grp, in main()
960 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
963 mbedtls_ecp_copy(&ecdh.Qp, &ecdh.Q) != 0 || in main()
964 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
970 ecp_clear_precomputed(&ecdh.grp); in main()
976 ret |= mbedtls_ecdh_calc_secret(&ecdh, in main()
980 mbedtls_ecdh_free(&ecdh); in main()
987 mbedtls_ecdh_init(&ecdh); in main()
990 if (mbedtls_ecp_group_load(&ecdh.grp, in main()
992 mbedtls_ecdh_gen_public(&ecdh.grp, &ecdh.d, in main()
993 &ecdh.Qp, myrand, in main()
995 mbedtls_ecdh_gen_public(&ecdh.grp, &ecdh.d, in main()
996 &ecdh.Q, myrand, in main()
1006 &ecdh.grp, in main()
1007 &z, &ecdh.Qp, in main()
1008 &ecdh.d, in main()
1012 mbedtls_ecdh_free(&ecdh); in main()