Rename concept Cipher --> BlockCipher.
Chaos Ci / test (push) Successful in 3m12s
Chaos Ci / benchmark (push) Successful in 1m26s

This commit is contained in:
hashlag committed 2026-09-19 01:45:37 +03:00
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
#define CHAOS_CIPHER_BLOCK_CIPHER_HPP
#ifndef CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
#define CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
#include <concepts>
#include <type_traits>
@@ -12,7 +12,7 @@ namespace Chaos::Cipher::Block
{
template<typename T>
concept Cipher = requires
concept BlockCipher = requires
{
typename T::Block;
typename T::Key;
@@ -32,4 +32,4 @@ concept Cipher = requires
} // namespace Chaos::Cipher::Block
#endif // CHAOS_CIPHER_BLOCK_CIPHER_HPP
#endif // CHAOS_CIPHER_BLOCK_BLOCKCIPHER_HPP
+2 -2
View File
@@ -13,7 +13,7 @@
#include "Cipher/Block/Key.hpp"
#include "Cipher/Block/Encryptor.hpp"
#include "Cipher/Block/Decryptor.hpp"
#include "Cipher/Block/Cipher.hpp"
#include "Cipher/Block/BlockCipher.hpp"
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
+2 -2
View File
@@ -4,7 +4,7 @@
#include <cstddef>
#include <cstdint>
#include "Cipher/Block/Cipher.hpp"
#include "Cipher/Block/BlockCipher.hpp"
#include "Padding/Padder.hpp"
#include "Service/ChaosException.hpp"
#include "Service/SeArray.hpp"
@@ -12,7 +12,7 @@
namespace Chaos::Cipher::Block::Mode
{
template<Cipher::Block::Cipher CipherT, Padding::Padder PadderT>
template<Cipher::Block::BlockCipher CipherT, Padding::Padder PadderT>
class EcbMode
{
public: