#include #include "openssl_common.h" #include namespace mlspp::hpke { bytes random_bytes(size_t size) { auto rand = bytes(size); if (1 != RAND_bytes(rand.data(), static_cast(size))) { throw openssl_error(); } return rand; } } // namespace mlspp::hpke