Introduce concept Key.

This commit is contained in:
hashlag committed 2026-09-13 01:14:41 +03:00
1 parent cb03a5db25
commit c9e90e4d0d
2 files changed
+21

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef CHAOS_CIPHER_BLOCK_KEY_HPP
#define CHAOS_CIPHER_BLOCK_KEY_HPP
#include <concepts>
#include <cstdint>
namespace Chaos::Cipher::Block
{
template<typename T>
concept Key = requires
{
requires std::constructible_from<T, uint8_t *, uint8_t *>;
};
} // namespace Chaos::Cipher::Block
#endif // CHAOS_CIPHER_BLOCK_KEY_HPP