diff options
Diffstat (limited to 'Swiften/StringCodecs/SHA1.h')
-rw-r--r-- | Swiften/StringCodecs/SHA1.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Swiften/StringCodecs/SHA1.h b/Swiften/StringCodecs/SHA1.h index 25bfa54..19488cb 100644 --- a/Swiften/StringCodecs/SHA1.h +++ b/Swiften/StringCodecs/SHA1.h @@ -26,9 +26,16 @@ namespace Swift { * convenient. */ static ByteArray getHash(const ByteArray& data); - static ByteArray getHash(const SafeByteArray& data); + ByteArray operator()(const SafeByteArray& data) { + return getHash(data); + } + + ByteArray operator()(const ByteArray& data) { + return getHash(data); + } + private: typedef struct { boost::uint32_t state[5]; |