comparison sysoptions.h @ 693:f31fce2430e8 sha2

increase MAX_MAC_LEN for sha2
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Jun 2012 23:24:39 +0800
parents 03073a27abb3
children
comparison
equal deleted inserted replaced
680:bd4b5d7886e5 693:f31fce2430e8
82 #define SHA512_HASH_SIZE 64 82 #define SHA512_HASH_SIZE 64
83 /* MD5 is 16 bytes = 128 bits */ 83 /* MD5 is 16 bytes = 128 bits */
84 #define MD5_HASH_SIZE 16 84 #define MD5_HASH_SIZE 16
85 85
86 /* largest of MD5 and SHA1 */ 86 /* largest of MD5 and SHA1 */
87 #define MAX_MAC_LEN SHA1_HASH_SIZE 87 #define MAX_MAC_LEN 64
88 88
89 89
90 #define MAX_KEY_LEN 32 /* 256 bits for aes256 etc */ 90 #define MAX_KEY_LEN 32 /* 256 bits for aes256 etc */
91 #define MAX_IV_LEN 20 /* must be same as max blocksize, 91 #define MAX_IV_LEN 20 /* must be same as max blocksize,
92 and >= SHA1_HASH_SIZE */ 92 and >= SHA1_HASH_SIZE */