summaryrefslogtreecommitdiff
path: root/src/modules/m_ripemd160.cpp
diff options
context:
space:
mode:
authorDaniel Vassdal <shutter@canternet.org>2014-07-02 20:55:33 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-08-04 12:38:12 +0200
commit5c7db14a557d7f980dfaa8c10d40c1ccc554b35d (patch)
treed9d0b3161928f1ba9cbf0ced5f894c2d1c6a1886 /src/modules/m_ripemd160.cpp
parent0c0a7b6404c5de51241cdaa3eb159d014ef51024 (diff)
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_ripemd160.cpp')
-rw-r--r--src/modules/m_ripemd160.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_ripemd160.cpp b/src/modules/m_ripemd160.cpp
index 261cd1e27..8d3131bc0 100644
--- a/src/modules/m_ripemd160.cpp
+++ b/src/modules/m_ripemd160.cpp
@@ -434,13 +434,13 @@ class RIProv : public HashProvider
return (byte *)hashcode;
}
public:
- std::string sum(const std::string& data)
+ std::string GenerateRaw(const std::string& data)
{
char* rv = (char*)RMD((byte*)data.data(), data.length(), NULL);
return std::string(rv, RMDsize / 8);
}
- RIProv(Module* m) : HashProvider(m, "hash/ripemd160", 20, 64) {}
+ RIProv(Module* m) : HashProvider(m, "ripemd160", 20, 64) {}
};
class ModuleRIPEMD160 : public Module