summaryrefslogtreecommitdiff
path: root/libavutil/hmac.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-06-10 17:24:47 -0300
committerMichael Niedermayer <michaelni@gmx.at>2013-06-12 01:47:42 +0200
commit82ef67016ef731268ab7b8e91139bd5f16edc991 (patch)
treeedc2a2620aa7ca5b543826d01aabf81d6c7b4401 /libavutil/hmac.h
parentb1d61eb7aaaef84391130b6f5e83942cc829a8c8 (diff)
lavu/hmac: Add support for SHA-2
Includes HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512. Tested using test vectors from https://tools.ietf.org/html/rfc4231 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/hmac.h')
-rw-r--r--libavutil/hmac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/hmac.h b/libavutil/hmac.h
index aef84c6439..d36d4de19e 100644
--- a/libavutil/hmac.h
+++ b/libavutil/hmac.h
@@ -32,6 +32,10 @@
enum AVHMACType {
AV_HMAC_MD5,
AV_HMAC_SHA1,
+ AV_HMAC_SHA224 = 10,
+ AV_HMAC_SHA256,
+ AV_HMAC_SHA384,
+ AV_HMAC_SHA512,
};
typedef struct AVHMAC AVHMAC;