Create dedicated Cipher/Block directory for block ciphers
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m41s

Move Des there.
This commit is contained in:
hashlag
2026-01-30 01:01:48 +03:00
parent b5d1f9a6fc
commit 3c98b75986
2 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
#ifndef CHAOS_CIPHER_DES_DESCRYPT_HPP #ifndef CHAOS_CIPHER_BLOCK_DES_DESCRYPT_HPP
#define CHAOS_CIPHER_DES_DESCRYPT_HPP #define CHAOS_CIPHER_BLOCK_DES_DESCRYPT_HPP
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
@@ -7,7 +7,7 @@
#include "Service/ChaosException.hpp" #include "Service/ChaosException.hpp"
#include "Service/SeArray.hpp" #include "Service/SeArray.hpp"
namespace Chaos::Cipher::Des::Inner_ namespace Chaos::Cipher::Block::Des::Inner_
{ {
struct Bitwise 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 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

View File

@@ -1,8 +1,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#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) TEST(DesCryptTests, KeyScheduleTest)
{ {