aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-11-29 17:58:45 +0100
committerKim Alvefur <zash@zash.se>2020-11-29 17:58:45 +0100
commitae14dc12208406f54c3ac260dc1dfe701e77f3a3 (patch)
tree3521e985e7949acfcd08ce022b47c149055ba9a3 /util
parent54f8ca81f427db3ae9624f9ab5ebd0a566f63013 (diff)
downloadprosody-ae14dc12208406f54c3ac260dc1dfe701e77f3a3.tar.gz
prosody-ae14dc12208406f54c3ac260dc1dfe701e77f3a3.zip
util.hashes: Expose sha224 and sha384 HMAC functions
For completeness and consistency with set of plain hash functions
Diffstat (limited to 'util')
-rw-r--r--util/hmac.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/hmac.lua b/util/hmac.lua
index 4cad17cc..994ea93b 100644
--- a/util/hmac.lua
+++ b/util/hmac.lua
@@ -13,6 +13,8 @@ local hashes = require "util.hashes"
return {
md5 = hashes.hmac_md5,
sha1 = hashes.hmac_sha1,
+ sha224 = hashes.hmac_sha224,
sha256 = hashes.hmac_sha256,
+ sha384 = hashes.hmac_sha384,
sha512 = hashes.hmac_sha512,
};