aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/scram.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-13 14:02:29 +0100
committerKim Alvefur <zash@zash.se>2019-01-13 14:02:29 +0100
commit49e8cbabff23741159a457d0eae8262e79e4561c (patch)
tree797d35246171227e9a5a070b4425ea9ecfe1ff2d /util/sasl/scram.lua
parent73acfb61b4613c13a96e47e11acdd14ac011961d (diff)
downloadprosody-49e8cbabff23741159a457d0eae8262e79e4561c.tar.gz
prosody-49e8cbabff23741159a457d0eae8262e79e4561c.zip
util.sasl.scram: Add support for SCRAM-SHA-256
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r--util/sasl/scram.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 0ca20a52..793382b8 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -263,6 +263,7 @@ local function init(registerMechanism)
end
registerSCRAMMechanism("SHA-1", hashes.sha1, hashes.hmac_sha1, hashes.pbkdf2_hmac_sha1);
+ registerSCRAMMechanism("SHA-256", hashes.sha256, hashes.hmac_sha256, hashes.pbkdf2_hmac_sha256);
end
return {