util.sasl.scram: Remove unused function and import
authorKim Alvefur <zash@zash.se>
Sun, 6 Oct 2013 21:17:05 +0000 (23:17 +0200)
committerKim Alvefur <zash@zash.se>
Sun, 6 Oct 2013 21:17:05 +0000 (23:17 +0200)
util/sasl/scram.lua

index 9dd7fdf8775fc4ed413a0573c0fc896f052a780a..d89eb8728bc728ccf362b3993be154ce8f2ddae5 100644 (file)
@@ -13,7 +13,6 @@
 
 local s_match = string.match;
 local type = type
-local tostring = tostring;
 local base64 = require "util.encodings".base64;
 local hmac_sha1 = require "util.hashes".hmac_sha1;
 local sha1 = require "util.hashes".sha1;
@@ -47,14 +46,6 @@ Supported Channel Binding Backends
 
 local default_i = 4096
 
-local function bp( b )
-       local result = ""
-       for i=1, b:len() do
-               result = result.."\\"..b:byte(i)
-       end
-       return result
-end
-
 local xor_map = {0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;1;0;3;2;5;4;7;6;9;8;11;10;13;12;15;14;2;3;0;1;6;7;4;5;10;11;8;9;14;15;12;13;3;2;1;0;7;6;5;4;11;10;9;8;15;14;13;12;4;5;6;7;0;1;2;3;12;13;14;15;8;9;10;11;5;4;7;6;1;0;3;2;13;12;15;14;9;8;11;10;6;7;4;5;2;3;0;1;14;15;12;13;10;11;8;9;7;6;5;4;3;2;1;0;15;14;13;12;11;10;9;8;8;9;10;11;12;13;14;15;0;1;2;3;4;5;6;7;9;8;11;10;13;12;15;14;1;0;3;2;5;4;7;6;10;11;8;9;14;15;12;13;2;3;0;1;6;7;4;5;11;10;9;8;15;14;13;12;3;2;1;0;7;6;5;4;12;13;14;15;8;9;10;11;4;5;6;7;0;1;2;3;13;12;15;14;9;8;11;10;5;4;7;6;1;0;3;2;14;15;12;13;10;11;8;9;6;7;4;5;2;3;0;1;15;14;13;12;11;10;9;8;7;6;5;4;3;2;1;0;};
 
 local result = {};