1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-aa,v 1.4 2007/09/29 12:18:16 rillig Exp $
Prototypes must match exactly, says gcc4.
--- source/rijndael-alg-ref.c.orig 2002-01-21 22:37:36.000000000 +0100
+++ source/rijndael-alg-ref.c 2007-09-29 14:16:54.000000000 +0200
@@ -36,11 +36,11 @@ static word8 shifts[3][4][2] = {
};
word8 mul(word8, word8);
-void KeyAddition(word8 [][], word8 [][], word8);
-void Substitution(word8 [][], word8 box[], word8);
-void ShiftRow(word8 [][], word8, word8);
-void MixColumn(word8 [][], word8);
-void InvMixColumn(word8 [][], word8);
+void KeyAddition(word8 [4][MAXBC], word8 [4][MAXBC], word8);
+void Substitution(word8 [4][MAXBC], word8 box[256], word8);
+void ShiftRow(word8 [4][MAXBC], word8, word8);
+void MixColumn(word8 [4][MAXBC], word8);
+void InvMixColumn(word8 [4][MAXBC], word8);
word8 mul(word8 a, word8 b) {
/* multiply two elements of GF(2^m)
|