diff options
author | jackpoz <giacomopoz@gmail.com> | 2016-08-03 23:33:36 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2016-08-03 23:33:36 +0200 |
commit | e4b2e0450f9cf38b8c69c2877068cee4e5f99dbc (patch) | |
tree | 450f2d2230bc410d2d0dab73aec945aac8185581 /src/common/Cryptography/ARC4.cpp | |
parent | 25dc3dd7a2fe1cea41b68559a7ccc0faa5ec5fa3 (diff) |
Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
Diffstat (limited to 'src/common/Cryptography/ARC4.cpp')
-rw-r--r-- | src/common/Cryptography/ARC4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Cryptography/ARC4.cpp b/src/common/Cryptography/ARC4.cpp index eea523a2090..ead85a18e67 100644 --- a/src/common/Cryptography/ARC4.cpp +++ b/src/common/Cryptography/ARC4.cpp @@ -18,14 +18,14 @@ #include "ARC4.h" -ARC4::ARC4(uint8 len) : m_ctx() +ARC4::ARC4(uint32 len) : m_ctx() { EVP_CIPHER_CTX_init(&m_ctx); EVP_EncryptInit_ex(&m_ctx, EVP_rc4(), NULL, NULL, NULL); EVP_CIPHER_CTX_set_key_length(&m_ctx, len); } -ARC4::ARC4(uint8 *seed, uint8 len) : m_ctx() +ARC4::ARC4(uint8 *seed, uint32 len) : m_ctx() { EVP_CIPHER_CTX_init(&m_ctx); EVP_EncryptInit_ex(&m_ctx, EVP_rc4(), NULL, NULL, NULL); |