diff options
author | Kim Alvefur <zash@zash.se> | 2013-08-06 14:31:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-08-06 14:31:20 +0200 |
commit | 8e182dcbb67dfca09f5c00d48d46c2e5a635a63d (patch) | |
tree | 4ab30767adf5a58d1654ce5ff43cecb2fed4a8b9 | |
parent | 47493361278343fd8693ade12dadf63715871609 (diff) | |
download | prosody-8e182dcbb67dfca09f5c00d48d46c2e5a635a63d.tar.gz prosody-8e182dcbb67dfca09f5c00d48d46c2e5a635a63d.zip |
util.hashes: Correct argument order
-rw-r--r-- | util-src/hashes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c index 39737ae0..ad25c1a7 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -85,7 +85,7 @@ static void hmac(struct hash_desc *desc, const char *key, size_t key_len, if (key_len > 64) { desc->Init(desc->ctx); desc->Update(desc->ctx, key, key_len); - desc->Final(desc->ctx, hashedKey); + desc->Final(hashedKey, desc->ctx); key = (const char*)hashedKey; key_len = desc->digestLength; } |