* openssl dgst -shake256 -xoflen 32 -binary > expected.dat
*/
+#ifndef OPENSSL_NO_ML_KEM
static const unsigned char ml_kem_512_cipher_text[] = {
0x6b, 0xc5, 0x04, 0x00, 0x27, 0x7a, 0xbb, 0x7e,
0x6b, 0xf9, 0xfb, 0x56, 0x82, 0x01, 0x75, 0xeb,
ml_kem_512_reject_secret /* No length because same as _secret's */
},
};
+#endif
}
#endif /* OPENSSL_NO_ML_DSA */
+#ifndef OPENSSL_NO_ML_KEM
/*
* FIPS 140-3 IG 10.3.A resolution 14 mandates a CAST for ML-KEM
* encapsulation.
EVP_PKEY_free(pkey);
return ret;
}
+#endif
/*
* Test a data driven list of KAT's for digest algorithms.
static int self_test_kems(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx)
{
- int i, ret = 1;
+ int ret = 1;
+#ifndef OPENSSL_NO_ML_KEM
+ int i;
for (i = 0; i < (int)OSSL_NELEM(st_kat_kem_tests); ++i) {
if (!self_test_kem(&st_kat_kem_tests[i], st, libctx))
ret = 0;
}
+#endif
return ret;
}