Rename concept Cipher --> BlockCipher.
This commit is contained in:
1 parent
d0b8cbe2ef
commit
611ffa2222
3 files changed
+8
-8
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
#ifndef CHAOS_CIPHER_BLOCK_CIPHER_HPP
|
#ifndef CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
|
||||||
#define CHAOS_CIPHER_BLOCK_CIPHER_HPP
|
#define CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
|
||||||
|
|
||||||
#include <concepts>
|
#include <concepts>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@@ -12,7 +12,7 @@ namespace Chaos::Cipher::Block
|
|||||||
{
|
{
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
concept Cipher = requires
|
concept BlockCipher = requires
|
||||||
{
|
{
|
||||||
typename T::Block;
|
typename T::Block;
|
||||||
typename T::Key;
|
typename T::Key;
|
||||||
@@ -32,4 +32,4 @@ concept Cipher = requires
|
|||||||
|
|
||||||
} // namespace Chaos::Cipher::Block
|
} // namespace Chaos::Cipher::Block
|
||||||
|
|
||||||
#endif // CHAOS_CIPHER_BLOCK_CIPHER_HPP
|
#endif // CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
#include "Cipher/Block/Key.hpp"
|
#include "Cipher/Block/Key.hpp"
|
||||||
#include "Cipher/Block/Encryptor.hpp"
|
#include "Cipher/Block/Encryptor.hpp"
|
||||||
#include "Cipher/Block/Decryptor.hpp"
|
#include "Cipher/Block/Decryptor.hpp"
|
||||||
#include "Cipher/Block/Cipher.hpp"
|
#include "Cipher/Block/BlockCipher.hpp"
|
||||||
|
|
||||||
namespace Chaos::Cipher::Block::Des::Inner_
|
namespace Chaos::Cipher::Block::Des::Inner_
|
||||||
{
|
{
|
||||||
@@ -525,7 +525,7 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(Cipher::Block::Cipher<DesCrypt>);
|
static_assert(Cipher::Block::BlockCipher<DesCrypt>);
|
||||||
|
|
||||||
} // namespace Chaos::Cipher::Block::Des
|
} // namespace Chaos::Cipher::Block::Des
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "Cipher/Block/Cipher.hpp"
|
#include "Cipher/Block/BlockCipher.hpp"
|
||||||
#include "Padding/Padder.hpp"
|
#include "Padding/Padder.hpp"
|
||||||
#include "Service/ChaosException.hpp"
|
#include "Service/ChaosException.hpp"
|
||||||
#include "Service/SeArray.hpp"
|
#include "Service/SeArray.hpp"
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
namespace Chaos::Cipher::Block::Mode
|
namespace Chaos::Cipher::Block::Mode
|
||||||
{
|
{
|
||||||
|
|
||||||
template<Cipher::Block::Cipher CipherT, Padding::Padder PadderT>
|
template<Cipher::Block::BlockCipher CipherT, Padding::Padder PadderT>
|
||||||
class EcbMode
|
class EcbMode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in new issue
Block a user