Comparison

tests/test_util_sasl_scram.lua @ 5537:15464633d8fb

util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashes
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 27 Apr 2013 17:01:31 +0200
parent 3406:748246005893
comparison
equal deleted inserted replaced
5531:483f795f6f99 5537:15464633d8fb
1 1
2 2
3 local hmac_sha1 = require "util.hmac".sha1; 3 local hmac_sha1 = require "util.hashes".hmac_sha1;
4 local function toHex(s) 4 local function toHex(s)
5 return s and (s:gsub(".", function (c) return ("%02x"):format(c:byte()); end)); 5 return s and (s:gsub(".", function (c) return ("%02x"):format(c:byte()); end));
6 end 6 end
7 7
8 function Hi(Hi) 8 function Hi(Hi)