Lines Matching refs:pub
445 BIGNUM *pub = NULL; in ffc_public_validate_test() local
448 if (!TEST_ptr(pub = BN_new())) in ffc_public_validate_test()
455 if (!TEST_true(BN_set_word(pub, 1))) in ffc_public_validate_test()
457 BN_set_negative(pub, 1); in ffc_public_validate_test()
459 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
463 if (!TEST_true(BN_set_word(pub, 0))) in ffc_public_validate_test()
466 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
475 if (!TEST_true(BN_add_word(pub, 2))) in ffc_public_validate_test()
478 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
481 if (!TEST_ptr(BN_copy(pub, params->p))) in ffc_public_validate_test()
484 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
489 if (!TEST_true(BN_sub_word(pub, 1))) in ffc_public_validate_test()
492 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
497 if (!TEST_true(BN_sub_word(pub, 1))) in ffc_public_validate_test()
500 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
505 if (!TEST_true(BN_sub_word(pub, 5))) 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()
527 if (!TEST_true(ossl_ffc_validate_public_key(params, pub, &res))) in ffc_public_validate_test()
535 BN_free(pub); in ffc_public_validate_test()