[AES] Panic when no generator key is provided

This commit is contained in:
wheremyfoodat 2023-08-15 16:03:04 +03:00
parent e40b2c4b1a
commit 4c004ab028
2 changed files with 8 additions and 0 deletions

View file

@ -105,6 +105,7 @@ namespace Crypto {
AESEngine() {}
void loadKeys(const std::filesystem::path& path);
bool haveKeys() { return keysLoaded; }
bool haveGenerator() { return m_generator.has_value(); }
constexpr bool hasKeyX(std::size_t slotId) {
if (slotId >= AesKeySlotCount) {