Skip to content
Permalink
Browse files

Merge pull request #832 from zpalmtree/abcdef

v2 does not require 43 bytes of data
  • Loading branch information...
brandonlehmann committed Jun 7, 2019
2 parents e2743f9 + 19f3878 commit 6293c009bf41065bd2e5277fc4eba93f31ab1bfe
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/CryptoTest/main.cpp
@@ -119,12 +119,11 @@ static inline bool CompareHashes(const Hash leftHash, const std::string right)
return (leftHash == rightHash);
}

/* Check if we're testing a v1 or v2 hash function */
/* Hacky as fuck lmao */
/* Hacky way to check if we're testing a v1 hash and thus should skip data
< 43 bytes */
bool need43BytesOfData(std::string hashFunctionName)
{
return (hashFunctionName.find("v1") != std::string::npos
|| hashFunctionName.find("v2") != std::string::npos);
return hashFunctionName.find("v1") != std::string::npos;
}

/* Bit of hackery so we can get the variable name of the passed in function.

0 comments on commit 6293c00

Please sign in to comment.
You can’t perform that action at this time.