diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/des/ChangeLog | 3 | ||||
| -rw-r--r-- | src/lib/crypto/des/afsstring2key.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 0f3eea278..09d884980 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -2,7 +2,8 @@ * afsstring2key.c (mit_afs_string_to_key): Allocate and pass buffer for afs_crypt. Don't use static storage for key schedule. - (IP, FP, PC1_C, PC1_D, shifts, PC2_C, PC2_D, E, e, P): Now const. + (IP, FP, PC1_C, PC1_D, shifts, PC2_C, PC2_D, E, e, P, S): Now + const. (C, D, KS, L, R, tempL, f, preS): Static variables deleted. (afs_crypt): Allocate them here, and pass pointers to other routines. diff --git a/src/lib/crypto/des/afsstring2key.c b/src/lib/crypto/des/afsstring2key.c index 20a284771..fa2275cf8 100644 --- a/src/lib/crypto/des/afsstring2key.c +++ b/src/lib/crypto/des/afsstring2key.c @@ -278,7 +278,7 @@ static const char P[] = { * For some reason, they give a 0-origin * index, unlike everything else. */ -static char S[8][64] = { +static const char S[8][64] = { {14, 4,13, 1, 2,15,11, 8, 3,10, 6,12, 5, 9, 0, 7, 0,15, 7, 4,14, 2,13, 1,10, 6,12,11, 9, 5, 3, 8, 4, 1,14, 8,13, 6, 2,11,15,12, 9, 7, 3,10, 5, 0, |
