Lines Matching defs:test
195 /* test multiplication with group order, long and negative scalars */
769 /* Change test based on whether binary point compression is enabled or not. */
890 /* Change test based on whether binary point compression is enabled or not. */
899 /* Change test based on whether binary point compression is enabled or not. */
938 /* Change test based on whether binary point compression is enabled or not. */
955 /* Change test based on whether binary point compression is enabled or not. */
1369 static void nistp_single_test(const struct nistp_test_params *test)
1376 fprintf(stdout, "\nNIST curve P-%d (optimised implementation):\n", test->degree);
1384 NISTP = EC_GROUP_new(test->meth());
1386 if (!BN_hex2bn(&p, test->p)) ABORT;
1388 if (!BN_hex2bn(&a, test->a)) ABORT;
1389 if (!BN_hex2bn(&b, test->b)) ABORT;
1395 if(!BN_hex2bn(&x, test->Qx)) ABORT;
1396 if(!BN_hex2bn(&y, test->Qy)) ABORT;
1398 if (!BN_hex2bn(&x, test->Gx)) ABORT;
1399 if (!BN_hex2bn(&y, test->Gy)) ABORT;
1401 if (!BN_hex2bn(&order, test->order)) ABORT;
1405 if (EC_GROUP_get_degree(NISTP) != test->degree) ABORT;
1408 fprintf(stdout, "NIST test vectors ... ");
1409 if (!BN_hex2bn(&n, test->d)) ABORT;
1420 /* set the scalar to m=n/2, where n is the NIST test scalar */
1423 /* test the non-standard generator */
1512 /* test the internal curves */