diff options
| author | 2014-07-02 20:55:33 +0200 | |
|---|---|---|
| committer | 2014-08-04 12:38:12 +0200 | |
| commit | 5c7db14a557d7f980dfaa8c10d40c1ccc554b35d (patch) | |
| tree | d9d0b3161928f1ba9cbf0ced5f894c2d1c6a1886 /src/modules/m_cloaking.cpp | |
| parent | m_password_hash: Use out_size as HMAC-key length, as RFC2104 recommends (diff) | |
| download | inspircd++-5c7db14a557d7f980dfaa8c10d40c1ccc554b35d.tar.gz inspircd++-5c7db14a557d7f980dfaa8c10d40c1ccc554b35d.tar.bz2 inspircd++-5c7db14a557d7f980dfaa8c10d40c1ccc554b35d.zip | |
Hashing: Redo API
* Don't assume the printable output of hashes is hex
* Add virtual Compare() function, usable for KDFs like BCrypt
Some changes and bugfixes are by @attilamolnar, original PR #767
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -rw-r--r-- | src/modules/m_cloaking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 5d62c9cf6..e0f3f01ef 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -192,7 +192,7 @@ class ModuleCloaking : public Module input.append(1, '\0'); // null does not terminate a C++ string input.append(item); - std::string rv = Hash->sum(input).substr(0,len); + std::string rv = Hash->Generate(input).substr(0,len); for(int i=0; i < len; i++) { // this discards 3 bits per byte. We have an |
