Lines Matching refs:hpke_suite
925 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_modes_suites() local
971 hpke_suite.kem_id = kem_id; in test_hpke_modes_suites()
974 if (TEST_true(OSSL_HPKE_keygen(hpke_suite, authpub, &authpublen, in test_hpke_modes_suites()
988 hpke_suite.kdf_id = kdf_id; in test_hpke_modes_suites()
1003 hpke_suite.aead_id = aead_id; in test_hpke_modes_suites()
1004 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, in test_hpke_modes_suites()
1008 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_modes_suites()
1043 rctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_modes_suites()
1057 if (hpke_suite.kem_id == OSSL_HPKE_KEM_ID_P256) { in test_hpke_modes_suites()
1124 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_export() local
1141 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_export()
1144 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_export()
1171 if (!TEST_ptr(rctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_export()
1314 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_oddcalls() local
1350 hpke_suite.aead_id = 0xbad; in test_hpke_oddcalls()
1351 if (!TEST_false(OSSL_HPKE_suite_check(hpke_suite))) in test_hpke_oddcalls()
1353 hpke_suite.aead_id = OSSL_HPKE_AEAD_ID_AES_GCM_128; in test_hpke_oddcalls()
1371 if (!TEST_false(OSSL_HPKE_keygen(hpke_suite, NULL, &publen, &privp, in test_hpke_oddcalls()
1375 if (!TEST_false(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_oddcalls()
1379 if (!TEST_false(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_oddcalls()
1383 if (!TEST_false(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_oddcalls()
1388 if (!TEST_false(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_oddcalls()
1404 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_oddcalls()
1409 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(OSSL_HPKE_MODE_PSK, hpke_suite, in test_hpke_oddcalls()
1434 if (!TEST_ptr_null(ctx = OSSL_HPKE_CTX_new(bad_mode, hpke_suite, in test_hpke_oddcalls()
1439 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_oddcalls()
1500 if (!TEST_ptr(rctx = OSSL_HPKE_CTX_new(OSSL_HPKE_MODE_PSK, hpke_suite, in test_hpke_oddcalls()
1510 if (!TEST_ptr(rctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_oddcalls()
1736 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_one_ikm_gen() local
1741 hpke_suite.kem_id = kem_id; in test_hpke_one_ikm_gen()
1742 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, lpub, &lpublen, &sk, in test_hpke_one_ikm_gen()
1804 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_compressed() local
1816 hpke_suite.kem_id = OSSL_HPKE_KEM_ID_P256; in test_hpke_compressed()
1819 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, authpub, &authpublen, &authpriv, in test_hpke_compressed()
1835 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_compressed()
1838 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_compressed()
1851 if (!TEST_ptr(rctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_compressed()
1882 OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT; in test_hpke_noncereuse() local
1896 if (!TEST_true(OSSL_HPKE_keygen(hpke_suite, pub, &publen, &privp, in test_hpke_noncereuse()
1899 if (!TEST_ptr(ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_noncereuse()
1916 if (!TEST_ptr(rctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite, in test_hpke_noncereuse()