ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/global.h
(Generate patch)

Comparing gvpe/src/global.h (file contents):
Revision 1.27 by root, Tue Jul 16 16:44:36 2013 UTC vs.
Revision 1.30 by root, Thu Jul 18 17:35:10 2013 UTC

65 */ 65 */
66 66
67#define PROTOCOL_MAJOR 1 67#define PROTOCOL_MAJOR 1
68#define PROTOCOL_MINOR 0 68#define PROTOCOL_MINOR 0
69 69
70#define SERIAL_SIZE 16
71
70#define SEED_SIZE 64 // how many octets to seed rng with 72#define SEED_SIZE 64 // how many octets to seed rng with
71 73
74#define HKDF_XTR_HASH EVP_sha512
75#define HKDF_PRF_HASH EVP_sha256
76
72#define HKDF_SALT 32 77#define HKDF_SALT 32
73#define IKM_SIZE 32
74 78
75#define RSA_KEYLEN (RSABITS >> 3) 79#define RSA_KEYLEN (RSABITS >> 3)
76 80
77#define AUTH_DIGEST ENABLE_AUTH 81#define AUTH_DIGEST ENABLE_AUTH
78#define AUTH_SIZE (HASH_SIZE (AUTH_DIGEST)) 82#define AUTH_SIZE (HASH_SIZE (AUTH_DIGEST))
79#define AUTH_TTL 12 // challenge bytes timeout after n seconds of non-use 83#define AUTH_TTL 12 // challenge bytes timeout after n seconds of non-use
80 84
81#define CIPHER ENABLE_CIPHER 85#define CIPHER ENABLE_CIPHER
82#define CIPHER_KEYSIZE (KEY_SIZE (CIPHER)) 86#define CIPHER_KEYSIZE (KEY_SIZE (CIPHER))
83 87
84#define MAC_DIGEST ENABLE_DIGEST 88#define MAC_DIGEST ENABLE_HMAC
85#define MAC_KEYSIZE HASH_SIZE (ENABLE_DIGEST) // number of bits used for the HMAC key 89#define MAC_KEYSIZE HASH_SIZE (ENABLE_HMAC) // number of bits used for the HMAC key
86 90
87#define WINDOWSIZE 512 // sliding window size 91#define WINDOWSIZE 512 // sliding window size
88#define MAX_SEQNO (0xfffffff0U - WINDOWSIZE * 8) 92#define MAX_SEQNO (0xfffffff0U - WINDOWSIZE * 8)
89 93
90// hdr seq len hmac MAC MAC 94// hdr seq len hmac MAC MAC

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines