--- gvpe/src/global.h 2013/07/17 04:36:03 1.28 +++ gvpe/src/global.h 2013/07/18 17:35:10 1.30 @@ -67,13 +67,14 @@ #define PROTOCOL_MAJOR 1 #define PROTOCOL_MINOR 0 +#define SERIAL_SIZE 16 + #define SEED_SIZE 64 // how many octets to seed rng with #define HKDF_XTR_HASH EVP_sha512 #define HKDF_PRF_HASH EVP_sha256 #define HKDF_SALT 32 -#define IKM_SIZE 32 #define RSA_KEYLEN (RSABITS >> 3) @@ -84,8 +85,8 @@ #define CIPHER ENABLE_CIPHER #define CIPHER_KEYSIZE (KEY_SIZE (CIPHER)) -#define MAC_DIGEST ENABLE_DIGEST -#define MAC_KEYSIZE HASH_SIZE (ENABLE_DIGEST) // number of bits used for the HMAC key +#define MAC_DIGEST ENABLE_HMAC +#define MAC_KEYSIZE HASH_SIZE (ENABLE_HMAC) // number of bits used for the HMAC key #define WINDOWSIZE 512 // sliding window size #define MAX_SEQNO (0xfffffff0U - WINDOWSIZE * 8)