Move Arc4 to the new Cipher/Stream subdirectory.
This commit is contained in:
1 parent
c51a22646f
commit
d0b8cbe2ef
5 files changed
+16
-16
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
#ifndef CHAOS_CIPHER_ARC4_ARC4CRYPT_HPP
|
#ifndef CHAOS_CIPHER_STREAM_ARC4_ARC4CRYPT_HPP
|
||||||
#define CHAOS_CIPHER_ARC4_ARC4CRYPT_HPP
|
#define CHAOS_CIPHER_STREAM_ARC4_ARC4CRYPT_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "Service/SeArray.hpp"
|
#include "Service/SeArray.hpp"
|
||||||
#include "Service/ChaosException.hpp"
|
#include "Service/ChaosException.hpp"
|
||||||
|
|
||||||
namespace Chaos::Cipher::Arc4
|
namespace Chaos::Cipher::Stream::Arc4
|
||||||
{
|
{
|
||||||
|
|
||||||
class Arc4Crypt
|
class Arc4Crypt
|
||||||
@@ -83,6 +83,6 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Chaos::Cipher::Arc4
|
} // namespace Chaos::Cipher::Stream::Arc4
|
||||||
|
|
||||||
#endif // CHAOS_CIPHER_ARC4_ARC4CRYPT_HPP
|
#endif // CHAOS_CIPHER_STREAM_ARC4_ARC4CRYPT_HPP
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef CHAOS_CIPHER_ARC4_ARC4GEN_HPP
|
#ifndef CHAOS_CIPHER_STREAM_ARC4_ARC4GEN_HPP
|
||||||
#define CHAOS_CIPHER_ARC4_ARC4GEN_HPP
|
#define CHAOS_CIPHER_STREAM_ARC4_ARC4GEN_HPP
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "Service/ChaosException.hpp"
|
#include "Service/ChaosException.hpp"
|
||||||
|
|
||||||
namespace Chaos::Cipher::Arc4
|
namespace Chaos::Cipher::Stream::Arc4
|
||||||
{
|
{
|
||||||
|
|
||||||
class Arc4Gen
|
class Arc4Gen
|
||||||
@@ -107,6 +107,6 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Chaos::Cipher::Arc4
|
} // namespace Chaos::Cipher::Stream::Arc4
|
||||||
|
|
||||||
#endif // CHAOS_CIPHER_ARC4_ARC4GEN_HPP
|
#endif // CHAOS_CIPHER_STREAM_ARC4_ARC4GEN_HPP
|
||||||
@@ -16,8 +16,8 @@ set(ChaosTests_SOURCE SanCallbacks.cpp
|
|||||||
Hash/Md5HasherTests.cpp
|
Hash/Md5HasherTests.cpp
|
||||||
Hash/Sha1HasherTests.cpp
|
Hash/Sha1HasherTests.cpp
|
||||||
Mac/HmacTests.cpp
|
Mac/HmacTests.cpp
|
||||||
Cipher/Arc4/Arc4GenTests.cpp
|
Cipher/Stream/Arc4/Arc4GenTests.cpp
|
||||||
Cipher/Arc4/Arc4CryptTests.cpp
|
Cipher/Stream/Arc4/Arc4CryptTests.cpp
|
||||||
Cipher/Block/Des/DesCryptTests.cpp
|
Cipher/Block/Des/DesCryptTests.cpp
|
||||||
Cipher/Block/Mode/EcbModeTests.cpp
|
Cipher/Block/Mode/EcbModeTests.cpp
|
||||||
Padding/PadderPkcs7Tests.cpp
|
Padding/PadderPkcs7Tests.cpp
|
||||||
|
|||||||
+2
-2
@@ -6,10 +6,10 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "Cipher/Arc4/Arc4Crypt.hpp"
|
#include "Cipher/Stream/Arc4/Arc4Crypt.hpp"
|
||||||
#include "Service/ChaosException.hpp"
|
#include "Service/ChaosException.hpp"
|
||||||
|
|
||||||
using namespace Chaos::Cipher::Arc4;
|
using namespace Chaos::Cipher::Stream::Arc4;
|
||||||
|
|
||||||
static std::vector<uint8_t> StrToU8Vec(const char * str)
|
static std::vector<uint8_t> StrToU8Vec(const char * str)
|
||||||
{
|
{
|
||||||
+2
-2
@@ -6,10 +6,10 @@
|
|||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "Cipher/Arc4/Arc4Gen.hpp"
|
#include "Cipher/Stream/Arc4/Arc4Gen.hpp"
|
||||||
#include "Service/ChaosException.hpp"
|
#include "Service/ChaosException.hpp"
|
||||||
|
|
||||||
using namespace Chaos::Cipher::Arc4;
|
using namespace Chaos::Cipher::Stream::Arc4;
|
||||||
|
|
||||||
TEST(Arc4GenTests, RFCTest)
|
TEST(Arc4GenTests, RFCTest)
|
||||||
{
|
{
|
||||||
Reference in new issue
Block a user