Software /
code /
prosody
Comparison
util/hmac.lua @ 10046:0bc291a5734a
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Jun 2019 13:22:22 +0200 |
parent | 9959:45caa32992b6 |
child | 12561:adfb46a3e8a7 |
comparison
equal
deleted
inserted
replaced
10045:6714578cfd6e | 10046:0bc291a5734a |
---|---|
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 sha512 = hashes.hmac_sha512, | |
18 }; |