Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/ncrypt: fix build with -fno-common
Move definition of ROUNDS from header to source file. This fixes the port on FreeBSD 13 and later.
- Loading branch information
1 parent
59c2682
commit 47f2932
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- rijndael-alg-fst.c.orig 2023-04-11 00:20:28 UTC | ||
+++ rijndael-alg-fst.c | ||
@@ -9,6 +9,8 @@ | ||
|
||
#include "rijndael-alg-fst.h" | ||
|
||
+int ROUNDS; | ||
+ | ||
#define SC ((BC - 4) >> 1) | ||
|
||
#include "boxes-fst.dat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- rijndael-alg-fst.h.orig 2023-04-11 00:20:14 UTC | ||
+++ rijndael-alg-fst.h | ||
@@ -11,7 +11,7 @@ typedef unsigned char word8; | ||
typedef unsigned short word16; | ||
typedef unsigned int word32; | ||
|
||
-int ROUNDS; | ||
+extern int ROUNDS; | ||
|
||
int rijndaelKeySched (word8 k[MAXKC][4], int keyBits, | ||
word8 rk[MAXROUNDS+1][4][4]); |