Move Arc4 to the new Cipher/Stream subdirectory.
Chaos Ci / test (push) Successful in 3m8s
Chaos Ci / benchmark (push) Successful in 1m27s

This commit is contained in:
hashlag committed 2026-09-13 17:38:51 +03:00
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
#define CHAOS_CIPHER_ARC4_ARC4CRYPT_HPP
#ifndef CHAOS_CIPHER_STREAM_ARC4_ARC4CRYPT_HPP
#define CHAOS_CIPHER_STREAM_ARC4_ARC4CRYPT_HPP
#include <cstdint>
#include <algorithm>
@@ -8,7 +8,7 @@
#include "Service/SeArray.hpp"
#include "Service/ChaosException.hpp"
namespace Chaos::Cipher::Arc4
namespace Chaos::Cipher::Stream::Arc4
{
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
#define CHAOS_CIPHER_ARC4_ARC4GEN_HPP
#ifndef CHAOS_CIPHER_STREAM_ARC4_ARC4GEN_HPP
#define CHAOS_CIPHER_STREAM_ARC4_ARC4GEN_HPP
#include <array>
#include <cstdint>
@@ -8,7 +8,7 @@
#include "Service/ChaosException.hpp"
namespace Chaos::Cipher::Arc4
namespace Chaos::Cipher::Stream::Arc4
{
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
+2 -2
View File
@@ -16,8 +16,8 @@ set(ChaosTests_SOURCE SanCallbacks.cpp
Hash/Md5HasherTests.cpp
Hash/Sha1HasherTests.cpp
Mac/HmacTests.cpp
Cipher/Arc4/Arc4GenTests.cpp
Cipher/Arc4/Arc4CryptTests.cpp
Cipher/Stream/Arc4/Arc4GenTests.cpp
Cipher/Stream/Arc4/Arc4CryptTests.cpp
Cipher/Block/Des/DesCryptTests.cpp
Cipher/Block/Mode/EcbModeTests.cpp
Padding/PadderPkcs7Tests.cpp
@@ -6,10 +6,10 @@
#include <cstdint>
#include <cstring>
#include "Cipher/Arc4/Arc4Crypt.hpp"
#include "Cipher/Stream/Arc4/Arc4Crypt.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)
{
@@ -6,10 +6,10 @@
#include <iterator>
#include <cstring>
#include "Cipher/Arc4/Arc4Gen.hpp"
#include "Cipher/Stream/Arc4/Arc4Gen.hpp"
#include "Service/ChaosException.hpp"
using namespace Chaos::Cipher::Arc4;
using namespace Chaos::Cipher::Stream::Arc4;
TEST(Arc4GenTests, RFCTest)
{