Software /
code /
prosody
Comparison
util/hmac.lua @ 9958:d879f2253c2d
util.hmac: Reflow code
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 19 Apr 2019 12:46:24 +0200 (2019-04-19) |
parent | 5776:bd0ff8ae98a8 |
child | 9959:45caa32992b6 |
comparison
equal
deleted
inserted
replaced
9957:c8cfd2a5845c | 9958:d879f2253c2d |
---|---|
8 | 8 |
9 -- COMPAT: Only for external pre-0.9 modules | 9 -- COMPAT: Only for external pre-0.9 modules |
10 | 10 |
11 local hashes = require "util.hashes" | 11 local hashes = require "util.hashes" |
12 | 12 |
13 return { md5 = hashes.hmac_md5, | 13 return { |
14 sha1 = hashes.hmac_sha1, | 14 md5 = hashes.hmac_md5, |
15 sha256 = hashes.hmac_sha256 }; | 15 sha1 = hashes.hmac_sha1, |
16 sha256 = hashes.hmac_sha256, | |
17 }; |