… | |
… | |
97 | |
97 | |
98 | #define MAC_DIGEST ENABLE_HMAC |
98 | #define MAC_DIGEST ENABLE_HMAC |
99 | #define MAC_KEYSIZE HASH_SIZE (ENABLE_HMAC) // number of bits used for the HMAC key |
99 | #define MAC_KEYSIZE HASH_SIZE (ENABLE_HMAC) // number of bits used for the HMAC key |
100 | #define MAC_IKMSIZE (MAC_KEYSIZE * 3 / 2) // randomness in rsa challenge |
100 | #define MAC_IKMSIZE (MAC_KEYSIZE * 3 / 2) // randomness in rsa challenge |
101 | |
101 | |
102 | #define WINDOWSIZE 512 // sliding window size |
102 | #define WINDOWSIZE 65536 // sliding window size |
103 | #define MAX_SEQNO (0xfffffff0U - WINDOWSIZE * 8) |
103 | #define MAX_SEQNO (0xfffffff0U - WINDOWSIZE * 8) |
104 | |
104 | |
105 | // hdr seq len hmac MAC MAC |
105 | // hdr seq len hmac MAC MAC |
106 | #define VPE_OVERHEAD (4 + 4 + 4 + HMACLENGTH - 6 - 6) |
106 | #define VPE_OVERHEAD (4 + 4 + 4 + HMACLENGTH - 6 - 6) |
107 | #define IP_OVERHEAD 20 // size of a (normal) ip header |
107 | #define IP_OVERHEAD 20 // size of a (normal) ip header |