Changeset

10217:60b445183d84

util.sasl.scram: Add support for SCRAM-SHA-256
author Kim Alvefur <zash@zash.se>
date Sun, 13 Jan 2019 14:02:29 +0100
parents 10216:a51d017e6173
children 10218:e458578ddfd3
files util/sasl/scram.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl/scram.lua	Sun Jan 13 14:01:31 2019 +0100
+++ b/util/sasl/scram.lua	Sun Jan 13 14:02:29 2019 +0100
@@ -263,6 +263,7 @@
 	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 {