]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sha1.h
Libucw: Added an implementation of HMAC-SHA1.
[libucw.git] / lib / sha1.h
index efc1dffd420d276f7b6259f80c0e34adeba67a6b..05dc485350a70fe9892de0f829c1fb96feeb2386 100644 (file)
@@ -28,7 +28,11 @@ byte *sha1_final(sha1_context *hd);
 /* One-shot interface */
 void sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length);
 
+/* HMAC */
+void sha1_hmac(byte *outbuf, const byte *key, uns keylen, const byte *data, uns datalen);
+
 #define SHA1_SIZE 20
 #define SHA1_HEX_SIZE 41
+#define SHA1_BLOCK_SIZE 64
 
 #endif