Create dedicated Cipher/Block directory for block ciphers
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m41s
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m41s
Move Des there.
This commit is contained in:
@@ -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
|
||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user