util/sasl/scram.lua
changeset 3540 bc139431830b
parent 3405 b1efe62c3c37
child 3981 2b0b8fe68df2
--- a/util/sasl/scram.lua	Sat Oct 16 08:34:32 2010 +0500
+++ b/util/sasl/scram.lua	Sat Oct 16 23:00:42 2010 +0500
@@ -67,7 +67,7 @@
 -- hash algorithm independent Hi(PBKDF2) implementation
 function Hi(hmac, str, salt, i)
 	local Ust = hmac(str, salt.."\0\0\0\1");
-	local res = Ust;	
+	local res = Ust;
 	for n=1,i-1 do
 		local Und = hmac(str, Ust)
 		res = binaryXOR(res, Und)
@@ -80,8 +80,8 @@
 	-- check for forbidden char sequences
 	for eq in username:gmatch("=(.?.?)") do
 		if eq ~= "2D" and eq ~= "3D" then
-			return false 
-		end 
+			return false
+		end
 	end
 	
 	-- replace =2D with , and =3D with =