From ffef856e205bcaf42a1a9a8cc5fb4965fd459edc Mon Sep 17 00:00:00 2001
From: Daniel White
Date: Thu, 27 Sep 2012 02:40:11 +1000
Subject: crypto: Provide a generic interface for HMAC generation
---
lib/crypto/doc/src/crypto.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'lib/crypto/doc')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 0f21441748..5e2a7acb97 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -342,6 +342,23 @@ Mpint() = >]]>
is 96 bits (12 bytes).
+
+ hmac(Type, Key, Data) -> Mac
+ hmac(Type, Key, Data, MacLength) -> Mac
+
+
+ Type = md5 | sha | sha224 | sha256 | sha384 | sha512
+ Key = iodata()
+ Data = iodata()
+ MacLength = integer()
+ Mac = binary()
+
+
+ Computes a HMAC of type Type from Data using
+ Key as the authentication key.
MacLength
+ will limit the size of the resultant Mac.
+
+
hmac_init(Type, Key) -> Context
--
cgit v1.2.3