diff options
author | Darren Tucker <dtucker@zip.com.au> | 2012-10-05 12:11:33 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2012-10-05 12:11:33 +1000 |
commit | 50ce447ef9224030c2a770c318d747f7b08d966c (patch) | |
tree | 1aa922164a08dc24930eb67bd3b03326f5ddb39e /umac.c | |
parent | ee4ad778d778c8a19c763738a0851afb9c6ccf16 (diff) | |
download | openssh-git-50ce447ef9224030c2a770c318d747f7b08d966c.tar.gz |
- [umac.c] Enforce allowed umac output sizes. From djm@.
Diffstat (limited to 'umac.c')
-rw-r--r-- | umac.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -55,6 +55,12 @@ #ifndef UMAC_OUTPUT_LEN #define UMAC_OUTPUT_LEN 8 /* Alowable: 4, 8, 12, 16 */ #endif + +#if UMAC_OUTPUT_LEN != 4 && UMAC_OUTPUT_LEN != 8 && \ + UMAC_OUTPUT_LEN != 12 && UMAC_OUTPUT_LEN != 16 +# error UMAC_OUTPUT_LEN must be defined to 4, 8, 12 or 16 +#endif + /* #define FORCE_C_ONLY 1 ANSI C and 64-bit integers req'd */ /* #define AES_IMPLEMENTAION 1 1 = OpenSSL, 2 = Barreto, 3 = Gladman */ /* #define SSE2 0 Is SSE2 is available? */ |