Comparison

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 5301:6279caf921f1
child 5538:62089c9c142d
comparison
equal deleted inserted replaced
5531:483f795f6f99 5537:15464633d8fb
13 13
14 local s_match = string.match; 14 local s_match = string.match;
15 local type = type 15 local type = type
16 local string = string 16 local string = string
17 local base64 = require "util.encodings".base64; 17 local base64 = require "util.encodings".base64;
18 local hmac_sha1 = require "util.hmac".sha1; 18 local hmac_sha1 = require "util.hashes".hmac_sha1;
19 local sha1 = require "util.hashes".sha1; 19 local sha1 = require "util.hashes".sha1;
20 local generate_uuid = require "util.uuid".generate; 20 local generate_uuid = require "util.uuid".generate;
21 local saslprep = require "util.encodings".stringprep.saslprep; 21 local saslprep = require "util.encodings".stringprep.saslprep;
22 local nodeprep = require "util.encodings".stringprep.nodeprep; 22 local nodeprep = require "util.encodings".stringprep.nodeprep;
23 local log = require "util.logger".init("sasl"); 23 local log = require "util.logger".init("sasl");