diff options
author | Olivier Verriest <verri@x25.pm> | 2017-07-30 14:07:43 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-08-04 05:57:20 +0000 |
commit | 97dcf87a868a51502e1ea6a90cd7a9ee3bbc59cf (patch) | |
tree | 515ca0088d46d38596809d6d4957ecff20ba7120 /wsutil/wsgcrypt.h | |
parent | dc69a8446ee47fd6d38d4fb4416db89ef5487696 (diff) |
SNMP: add support for USM SHA-2 algorithms (RFC 7860)
Generlize the USM handling and add support for HMAC-SHA-2 authentication
protocols.
Change-Id: I7cca2f24db61620423fded078c680322aff86400
Reviewed-on: https://code.wireshark.org/review/22846
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/wsgcrypt.h')
-rw-r--r-- | wsutil/wsgcrypt.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wsutil/wsgcrypt.h b/wsutil/wsgcrypt.h index 8ad0fcfd4f..b323c35c3a 100644 --- a/wsutil/wsgcrypt.h +++ b/wsutil/wsgcrypt.h @@ -37,8 +37,12 @@ DIAG_OFF(deprecated-declarations) DIAG_ON(deprecated-declarations) -#define HASH_MD5_LENGTH 16 -#define HASH_SHA1_LENGTH 20 +#define HASH_MD5_LENGTH 16 +#define HASH_SHA1_LENGTH 20 +#define HASH_SHA2_224_LENGTH 28 +#define HASH_SHA2_256_LENGTH 32 +#define HASH_SHA2_384_LENGTH 48 +#define HASH_SHA2_512_LENGTH 64 /* Convenience function to calculate the HMAC from the data in BUFFER of size LENGTH with key KEY of size KEYLEN using the algorithm ALGO avoiding the creating of a |