Lines Matching refs:res

176     int ret = 0, res;  in ffc_params_validate_g_unverified_test()  local
204 &res, NULL))) in ffc_params_validate_g_unverified_test()
211 &res, NULL))) in ffc_params_validate_g_unverified_test()
218 &res, NULL))) in ffc_params_validate_g_unverified_test()
225 &res, NULL))) in ffc_params_validate_g_unverified_test()
232 &res, NULL))) in ffc_params_validate_g_unverified_test()
246 int ret = 0, res = -1; in ffc_params_validate_pq_test() local
268 &res, NULL))) in ffc_params_validate_pq_test()
279 &res, NULL))) in ffc_params_validate_pq_test()
288 &res, NULL))) in ffc_params_validate_pq_test()
297 &res, NULL))) in ffc_params_validate_pq_test()
306 &res, NULL))) in ffc_params_validate_pq_test()
327 &res, NULL))) in ffc_params_validate_pq_test()
333 &res, NULL))) in ffc_params_validate_pq_test()
348 int ret = 0, res = -1; in ffc_params_gen_test() local
354 2048, 256, &res, NULL))) in ffc_params_gen_test()
358 &res, NULL))) in ffc_params_gen_test()
369 int ret = 0, res = -1; in ffc_params_gen_canonicalg_test() local
376 2048, 256, &res, NULL))) in ffc_params_gen_canonicalg_test()
380 &res, NULL))) in ffc_params_gen_canonicalg_test()
394 int ret = 0, res = -1; in ffc_params_fips186_2_gen_validate_test() local
403 1024, 160, &res, NULL))) in ffc_params_fips186_2_gen_validate_test()
407 &res, NULL))) in ffc_params_fips186_2_gen_validate_test()
416 &res, NULL))) in ffc_params_fips186_2_gen_validate_test()
419 if (!TEST_true(res == FFC_CHECK_Q_MISMATCH || res == FFC_CHECK_Q_NOT_PRIME)) in ffc_params_fips186_2_gen_validate_test()
426 &res, NULL), 2)) in ffc_params_fips186_2_gen_validate_test()
443 int ret = 0, res = -1; in ffc_public_validate_test() local
459 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
461 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test()
466 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
468 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test()
471 if (!TEST_true(ossl_ffc_validate_public_key(params, BN_value_one(), &res))) in ffc_public_validate_test()
473 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test()
478 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
484 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
486 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_LARGE, res)) in ffc_public_validate_test()
492 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
494 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_LARGE, res)) in ffc_public_validate_test()
500 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
502 if (!TEST_int_eq(FFC_ERROR_PUBKEY_INVALID, res)) in ffc_public_validate_test()
508 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
512 if (!TEST_true(ossl_ffc_validate_public_key(NULL, pub, &res))) in ffc_public_validate_test()
514 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test()
516 res = -1; in ffc_public_validate_test()
518 if (!TEST_true(ossl_ffc_validate_public_key(params, NULL, &res))) in ffc_public_validate_test()
520 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test()
522 res = -1; in ffc_public_validate_test()
527 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
529 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test()
541 int ret = 0, res = -1; in ffc_private_validate_test() local
557 if (!TEST_false(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_validate_test()
559 if (!TEST_int_eq(FFC_ERROR_PRIVKEY_TOO_SMALL, res)) in ffc_private_validate_test()
565 if (!TEST_false(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_validate_test()
567 if (!TEST_int_eq(FFC_ERROR_PRIVKEY_TOO_SMALL, res)) in ffc_private_validate_test()
572 &res))) in ffc_private_validate_test()
578 if (!TEST_false(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_validate_test()
580 if (!TEST_int_eq(FFC_ERROR_PRIVKEY_TOO_LARGE, res)) in ffc_private_validate_test()
586 if (!TEST_true(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_validate_test()
589 if (!TEST_false(ossl_ffc_validate_private_key(NULL, priv, &res))) in ffc_private_validate_test()
591 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_private_validate_test()
593 res = -1; in ffc_private_validate_test()
594 if (!TEST_false(ossl_ffc_validate_private_key(params->q, NULL, &res))) in ffc_private_validate_test()
596 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_private_validate_test()
608 int ret = 0, res = -1, N; in ffc_private_gen_test() local
638 if (!TEST_true(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_gen_test()
643 if (!TEST_true(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_gen_test()
652 if (!TEST_true(ossl_ffc_validate_private_key(params->q, priv, &res))) in ffc_private_gen_test()