Lines Matching refs:enclen
103 size_t enclen = sizeof(enc); in do_testhpke() local
152 if (!TEST_true(OSSL_HPKE_encap(sealctx, enc, &enclen, in do_testhpke()
156 if (!TEST_true(cmpkey(privE, enc, enclen))) in do_testhpke()
192 if (!TEST_true(OSSL_HPKE_decap(openctx, enc, enclen, privR, in do_testhpke()
1134 size_t enclen = sizeof(enc); in test_hpke_export() local
1156 if (!TEST_true(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_export()
1175 if (!TEST_true(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_export()
1266 size_t enclen = 0; in test_hpke_grease() local
1292 enclen = OSSL_HPKE_get_public_encap_size(g_suite); in test_hpke_grease()
1293 if (!TEST_size_t_ne(enclen, 0)) in test_hpke_grease()
1321 size_t enclen = sizeof(enc), smallenclen = sizeof(smallenc); in test_hpke_oddcalls() local
1424 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_oddcalls()
1467 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, 1, NULL, 0))) in test_hpke_oddcalls()
1470 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, 1, info, -1))) in test_hpke_oddcalls()
1473 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, 1, NULL, 1))) in test_hpke_oddcalls()
1476 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, 1, info, 0))) in test_hpke_oddcalls()
1482 if (!TEST_true(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_oddcalls()
1485 if (!TEST_false(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_oddcalls()
1504 if (!TEST_false(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_oddcalls()
1519 if (!TEST_false(OSSL_HPKE_decap(rctx, enc, enclen, privp, info, -1))) in test_hpke_oddcalls()
1522 if (!TEST_true(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_oddcalls()
1525 if (!TEST_false(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_oddcalls()
1651 size_t enclen = sizeof(enc); in test_hpke_random_suites() local
1660 enclen = 10; in test_hpke_random_suites()
1662 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1666 enclen = sizeof(enc); /* reset, 'cause get_grease() will have set */ in test_hpke_random_suites()
1669 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1673 enclen = sizeof(enc); /* reset, 'cause get_grease() will have set */ in test_hpke_random_suites()
1675 enc, &enclen, in test_hpke_random_suites()
1680 enclen = sizeof(enc); /* reset, 'cause get_grease() will have set */ in test_hpke_random_suites()
1683 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1686 enclen = sizeof(enc); in test_hpke_random_suites()
1689 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1694 enclen = sizeof(enc); in test_hpke_random_suites()
1699 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1702 enclen = sizeof(enc); in test_hpke_random_suites()
1706 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1709 enclen = sizeof(enc); in test_hpke_random_suites()
1713 enc, &enclen, ct, ctlen, in test_hpke_random_suites()
1810 size_t enclen = sizeof(enc); in test_hpke_compressed() local
1844 if (!TEST_true(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_compressed()
1857 if (!TEST_true(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_compressed()
1888 size_t enclen = sizeof(enc); in test_hpke_noncereuse() local
1906 if (!TEST_true(OSSL_HPKE_encap(ctx, enc, &enclen, pub, publen, NULL, 0))) in test_hpke_noncereuse()
1923 if (!TEST_true(OSSL_HPKE_decap(rctx, enc, enclen, privp, NULL, 0))) in test_hpke_noncereuse()