Skip to content

Commit d3bf6f7

Browse files
committed
Re-do "Fix build error"
1 parent 11b9762 commit d3bf6f7

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

Shared/mods/deathmatch/logic/luadefs/CLuaCryptDefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ std::variant<std::string, bool> CLuaCryptDefs::Hash(lua_State* const luaVM, Hash
6262
switch (hashFunction)
6363
{
6464
case HashFunctionType::MD5:
65-
return SharedUtil::Hash<CryptoPP::Weak::MD5>(strSourceData).ToLower();
65+
return SharedUtil::Hash<CryptoPP::MD5>(strSourceData).ToLower();
6666

6767
case HashFunctionType::SHA1:
6868
return SharedUtil::Hash<CryptoPP::SHA1>(strSourceData).ToLower();
@@ -106,7 +106,7 @@ std::variant<std::string, bool> CLuaCryptDefs::Hash(lua_State* const luaVM, Hash
106106
switch (hmacAlgorithm)
107107
{
108108
case HmacAlgorithm::MD5:
109-
return SharedUtil::Hmac<CryptoPP::Weak::MD5>(strSourceData, key).ToLower();
109+
return SharedUtil::Hmac<CryptoPP::MD5>(strSourceData, key).ToLower();
110110

111111
case HmacAlgorithm::SHA1:
112112
return SharedUtil::Hmac<CryptoPP::SHA1>(strSourceData, key).ToLower();

Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ std::optional<std::string> CLuaFileDefs::fileGetHash(lua_State* const luaVM, CSc
918918
switch (hashFunction)
919919
{
920920
case HashFunctionType::MD5:
921-
result = ComputeScriptFileHash<CryptoPP::Weak::MD5>(scriptFile);
921+
result = ComputeScriptFileHash<CryptoPP::MD5>(scriptFile);
922922
break;
923923
case HashFunctionType::SHA1:
924924
result = ComputeScriptFileHash<CryptoPP::SHA1>(scriptFile);
@@ -955,7 +955,7 @@ std::optional<std::string> CLuaFileDefs::fileGetHash(lua_State* const luaVM, CSc
955955
switch (hmacAlgorithm)
956956
{
957957
case HmacAlgorithm::MD5:
958-
result = ComputeScriptFileHash<CryptoPP::HMAC<CryptoPP::Weak::MD5>>(scriptFile, key);
958+
result = ComputeScriptFileHash<CryptoPP::HMAC<CryptoPP::MD5>>(scriptFile, key);
959959
break;
960960
case HmacAlgorithm::SHA1:
961961
result = ComputeScriptFileHash<CryptoPP::HMAC<CryptoPP::SHA1>>(scriptFile, key);

Shared/sdk/SharedUtil.Tests.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ void SharedUtil_Hash_Tests()
789789
switch (algorithm)
790790
{
791791
case HmacAlgorithm::MD5:
792-
hmacResult = SharedUtil::Hmac<CryptoPP::Weak::MD5>(data, key);
792+
hmacResult = SharedUtil::Hmac<CryptoPP::MD5>(data, key);
793793
break;
794794
case HmacAlgorithm::SHA1:
795795
hmacResult = SharedUtil::Hmac<CryptoPP::SHA1>(data, key);

vendor/cryptopp/config_asm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
# if defined(__aarch32__) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
281281
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_GCC_VERSION >= 40800) || \
282282
(CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40300) || \
283-
(CRYPTOPP_MSC_VERSION >= 1916))
283+
(CRYPTOPP_MSC_VERSION >= 1916)
284284
# define CRYPTOPP_ARM_AES_AVAILABLE 1
285285
# endif // Compilers
286286
# endif // Platforms
@@ -292,7 +292,7 @@
292292
# if defined(__aarch32__) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
293293
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_GCC_VERSION >= 40800) || \
294294
(CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40300) || \
295-
(CRYPTOPP_MSC_VERSION >= 1916))
295+
(CRYPTOPP_MSC_VERSION >= 1916)
296296
# define CRYPTOPP_ARM_PMULL_AVAILABLE 1
297297
# endif // Compilers
298298
# endif // Platforms
@@ -304,7 +304,7 @@
304304
# if defined(__aarch32__) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
305305
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_GCC_VERSION >= 40800) || \
306306
(CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40300) || \
307-
(CRYPTOPP_MSC_VERSION >= 1916))
307+
(CRYPTOPP_MSC_VERSION >= 1916)
308308
# define CRYPTOPP_ARM_SHA1_AVAILABLE 1
309309
# define CRYPTOPP_ARM_SHA2_AVAILABLE 1
310310
# endif // Compilers

vendor/cryptopp/md5.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#ifndef CRYPTOPP_MD5_H
22
#define CRYPTOPP_MD5_H
3-
#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
43

54
#include "iterhash.h"
65

@@ -11,7 +10,7 @@ namespace Weak1 {
1110
/// \brief MD5 message digest
1211
/// \sa <a href="http://www.cryptolounge.org/wiki/MD5">MD5</a>
1312
/// \since Crypto++ 1.0
14-
class Weak::MD5 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD5>
13+
class MD5 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD5>
1514
{
1615
public:
1716
static void InitState(HashWordType *state);

0 commit comments

Comments
 (0)