Introduce concept Key.
This commit is contained in:
1 parent
cb03a5db25
commit
c9e90e4d0d
2 files changed
+21
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user