diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-27 19:06:47 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-27 19:06:47 (GMT) |
commit | aa09a889108c4d0e3c5888ad98958d8f3e12bd3b (patch) | |
tree | 3c621ae0a6e2150281be182b37e2837b804adcba /Swiften/SASL | |
parent | c89ef0ffae597ac8c1063732e1d9a2d84703a80c (diff) | |
download | swift-contrib-aa09a889108c4d0e3c5888ad98958d8f3e12bd3b.zip swift-contrib-aa09a889108c4d0e3c5888ad98958d8f3e12bd3b.tar.bz2 |
Added MD5 hashing algorithm.
Moved 'hexifying' of hashes into its own class, such that it can be
shared between all hashes.
Diffstat (limited to 'Swiften/SASL')
-rw-r--r-- | Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp index a261810..5e6179f 100644 --- a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp +++ b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp @@ -38,7 +38,7 @@ ByteArray SCRAMSHA1ClientAuthenticator::getResponse() const { } else { ByteArray clientKey = HMACSHA1::getResult(saltedPassword, "Client Key"); - ByteArray storedKey = SHA1::getBinaryHash(clientKey); + ByteArray storedKey = SHA1::getHash(clientKey); ByteArray clientSignature = HMACSHA1::getResult(storedKey, authMessage); ByteArray clientProof = clientKey; for (unsigned int i = 0; i < clientProof.getSize(); ++i) { |