summaryrefslogtreecommitdiff
path: root/rijndael.h
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-09-28 11:14:50 +0000
committerDarren Tucker <dtucker@dtucker.net>2021-09-29 11:09:27 +1000
commit15abdd523501c349b703d9a27e2bb4252ad921ef (patch)
tree76b87f90f2bd1f4397900dd541d32e210eea9715 /rijndael.h
parentd1d29ea1d1ef1a1a54b209f062ec1dcc8399cf03 (diff)
downloadopenssh-git-15abdd523501c349b703d9a27e2bb4252ad921ef.tar.gz
upstream: Make prototype for rijndaelEncrypt match function
including the bounds. Fixes error in portable where GCC>=11 takes notice of the bounds. ok deraadt@ OpenBSD-Commit-ID: cdd2f05fd1549e1786a70871e513cf9e9cf099a6
Diffstat (limited to 'rijndael.h')
-rw-r--r--rijndael.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/rijndael.h b/rijndael.h
index 53e74e0a..e04324b6 100644
--- a/rijndael.h
+++ b/rijndael.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rijndael.h,v 1.14 2014/04/29 15:42:07 markus Exp $ */
+/* $OpenBSD: rijndael.h,v 1.15 2021/09/28 11:14:50 dtucker Exp $ */
/**
* rijndael-alg-fst.h
@@ -38,8 +38,7 @@ typedef unsigned short u16;
typedef unsigned int u32;
int rijndaelKeySetupEnc(unsigned int [], const unsigned char [], int);
-void rijndaelEncrypt(const unsigned int [], int, const unsigned char [],
- unsigned char []);
+void rijndaelEncrypt(const unsigned int [], int, const u8 [16], u8 [16]);
/* The structure for key information */
typedef struct {