summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-10-05 12:11:33 +1000
committerDarren Tucker <dtucker@zip.com.au>2012-10-05 12:11:33 +1000
commit50ce447ef9224030c2a770c318d747f7b08d966c (patch)
tree1aa922164a08dc24930eb67bd3b03326f5ddb39e
parentee4ad778d778c8a19c763738a0851afb9c6ccf16 (diff)
- [umac.c] Enforce allowed umac output sizes. From djm@.
-rw-r--r--ChangeLog1
-rw-r--r--umac.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ed3a2839..eda55cf57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
47 use -Ocheck and waiting for completions by PID to make multiplexing test 47 use -Ocheck and waiting for completions by PID to make multiplexing test
48 less racy and (hopefully) more reliable on slow hardware. 48 less racy and (hopefully) more reliable on slow hardware.
49 - [Makefile umac.c] Add special-case target to build umac128.o. 49 - [Makefile umac.c] Add special-case target to build umac128.o.
50 - [umac.c] Enforce allowed umac output sizes. From djm@.
50 51
5120120917 5220120917
52 - (dtucker) OpenBSD CVS Sync 53 - (dtucker) OpenBSD CVS Sync
diff --git a/umac.c b/umac.c
index e373de5be..0567c37f9 100644
--- a/umac.c
+++ b/umac.c
@@ -55,6 +55,12 @@
55#ifndef UMAC_OUTPUT_LEN 55#ifndef UMAC_OUTPUT_LEN
56#define UMAC_OUTPUT_LEN 8 /* Alowable: 4, 8, 12, 16 */ 56#define UMAC_OUTPUT_LEN 8 /* Alowable: 4, 8, 12, 16 */
57#endif 57#endif
58
59#if UMAC_OUTPUT_LEN != 4 && UMAC_OUTPUT_LEN != 8 && \
60 UMAC_OUTPUT_LEN != 12 && UMAC_OUTPUT_LEN != 16
61# error UMAC_OUTPUT_LEN must be defined to 4, 8, 12 or 16
62#endif
63
58/* #define FORCE_C_ONLY 1 ANSI C and 64-bit integers req'd */ 64/* #define FORCE_C_ONLY 1 ANSI C and 64-bit integers req'd */
59/* #define AES_IMPLEMENTAION 1 1 = OpenSSL, 2 = Barreto, 3 = Gladman */ 65/* #define AES_IMPLEMENTAION 1 1 = OpenSSL, 2 = Barreto, 3 = Gladman */
60/* #define SSE2 0 Is SSE2 is available? */ 66/* #define SSE2 0 Is SSE2 is available? */