From 3c98b75986f2273f784ffcc034c82bacb43f61a3 Mon Sep 17 00:00:00 2001 From: hashlag Date: Fri, 30 Jan 2026 01:01:48 +0300 Subject: [PATCH] Create dedicated Cipher/Block directory for block ciphers Move Des there. --- Chaos/Cipher/{ => Block}/Des/DesCrypt.hpp | 14 +++++++------- ChaosTests/Cipher/DesCryptTests.cpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) rename Chaos/Cipher/{ => Block}/Des/DesCrypt.hpp (97%) diff --git a/Chaos/Cipher/Des/DesCrypt.hpp b/Chaos/Cipher/Block/Des/DesCrypt.hpp similarity index 97% rename from Chaos/Cipher/Des/DesCrypt.hpp rename to Chaos/Cipher/Block/Des/DesCrypt.hpp index 96a5fb1..6bc14c0 100644 --- a/Chaos/Cipher/Des/DesCrypt.hpp +++ b/Chaos/Cipher/Block/Des/DesCrypt.hpp @@ -1,5 +1,5 @@ -#ifndef CHAOS_CIPHER_DES_DESCRYPT_HPP -#define CHAOS_CIPHER_DES_DESCRYPT_HPP +#ifndef CHAOS_CIPHER_BLOCK_DES_DESCRYPT_HPP +#define CHAOS_CIPHER_BLOCK_DES_DESCRYPT_HPP #include #include @@ -7,7 +7,7 @@ #include "Service/ChaosException.hpp" #include "Service/SeArray.hpp" -namespace Chaos::Cipher::Des::Inner_ +namespace Chaos::Cipher::Block::Des::Inner_ { struct Bitwise @@ -184,9 +184,9 @@ private: } }; -} // namespace Chaos::Cipher::Des::Inner_ +} // namespace Chaos::Cipher::Block::Des::Inner_ -namespace Chaos::Cipher::Des +namespace Chaos::Cipher::Block::Des { class DesCrypt @@ -483,6 +483,6 @@ private: } }; -} // namespace Chaos::Cipher::Des +} // namespace Chaos::Cipher::Block::Des -#endif // CHAOS_CIPHER_DES_DESCRYPT_HPP +#endif // CHAOS_CIPHER_BLOCK_DES_DESCRYPT_HPP diff --git a/ChaosTests/Cipher/DesCryptTests.cpp b/ChaosTests/Cipher/DesCryptTests.cpp index b98a502..1fb117f 100644 --- a/ChaosTests/Cipher/DesCryptTests.cpp +++ b/ChaosTests/Cipher/DesCryptTests.cpp @@ -1,8 +1,8 @@ #include -#include "Cipher/Des/DesCrypt.hpp" +#include "Cipher/Block/Des/DesCrypt.hpp" -using namespace Chaos::Cipher::Des; +using namespace Chaos::Cipher::Block::Des; TEST(DesCryptTests, KeyScheduleTest) {