aboutsummaryrefslogtreecommitdiffstats
path: root/util/hmac.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/hmac.lua')
-rw-r--r--util/hmac.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/hmac.lua b/util/hmac.lua
new file mode 100644
index 00000000..51211c7a
--- /dev/null
+++ b/util/hmac.lua
@@ -0,0 +1,15 @@
+-- Prosody IM
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
+--
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
+-- COMPAT: Only for external pre-0.9 modules
+
+local hashes = require "util.hashes"
+
+return { md5 = hashes.hmac_md5,
+ sha1 = hashes.hmac_sha1,
+ sha256 = hashes.hmac_sha256 };