Convert CMAC and Key Wrap regress tests over to the new AES
authormikeb <mikeb@openbsd.org>
Tue, 2 May 2017 17:08:30 +0000 (17:08 +0000)
committermikeb <mikeb@openbsd.org>
Tue, 2 May 2017 17:08:30 +0000 (17:08 +0000)
OK stsp@

regress/sys/crypto/cmac/Makefile
regress/sys/crypto/cmac/cmac_test.c
regress/sys/crypto/key_wrap/Makefile
regress/sys/crypto/key_wrap/key_wrap_test.c

index 28000f5..8a1267a 100644 (file)
@@ -1,9 +1,9 @@
-#      $OpenBSD: Makefile,v 1.3 2014/01/18 05:54:52 martynas Exp $
+#      $OpenBSD: Makefile,v 1.4 2017/05/02 17:08:30 mikeb Exp $
 
 DIR=${.CURDIR}/../../../../sys
 
 PROG=  cmac_test
-SRCS+= rijndael.c cmac.c cmac_test.c
+SRCS+= aes.c cmac.c cmac_test.c
 CDIAGFLAGS=    -Wall
 CDIAGFLAGS+=   -Werror
 CDIAGFLAGS+=   -Wpointer-arith
index bd165f2..0f5c891 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <sys/param.h>
-#include <crypto/rijndael.h>
+#include <crypto/aes.h>
 #include <crypto/cmac.h>
 #include <stdio.h>
 #include <string.h>
index fd5549e..cd4f759 100644 (file)
@@ -1,9 +1,9 @@
-#      $OpenBSD: Makefile,v 1.4 2014/01/18 05:54:52 martynas Exp $
+#      $OpenBSD: Makefile,v 1.5 2017/05/02 17:08:30 mikeb Exp $
 
 DIR=${.CURDIR}/../../../../sys
 
 PROG=  key_wrap_test
-SRCS+= rijndael.c key_wrap.c key_wrap_test.c timingsafe_bcmp.c
+SRCS+= aes.c key_wrap.c key_wrap_test.c timingsafe_bcmp.c
 CDIAGFLAGS=    -Wall
 CDIAGFLAGS+=   -Werror
 CDIAGFLAGS+=   -Wpointer-arith
index 6a78aee..5fc6006 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <string.h>
 #include <stdio.h>
-#include <crypto/rijndael.h>
+#include <crypto/aes.h>
 #include <crypto/key_wrap.h>
 
 static void