projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1b0c8
)
Wire DES weak_keys to read-only segment.
author
Andy Polyakov
<appro@openssl.org>
Tue, 18 Sep 2007 20:58:33 +0000
(20:58 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 18 Sep 2007 20:58:33 +0000
(20:58 +0000)
crypto/des/set_key.c
patch
|
blob
|
history
diff --git
a/crypto/des/set_key.c
b/crypto/des/set_key.c
index d8499998b7d55a23684b42f02509278a00d52aef..ccfad81c2e2fccafa68a060ce7f9cd2d28b9ebdc 100644
(file)
--- a/
crypto/des/set_key.c
+++ b/
crypto/des/set_key.c
@@
-115,7
+115,7
@@
int DES_check_key_parity(const_DES_cblock *key)
* (and actual cblock values).
*/
#define NUM_WEAK_KEY 16
-static DES_cblock weak_keys[NUM_WEAK_KEY]={
+static
const
DES_cblock weak_keys[NUM_WEAK_KEY]={
/* weak keys */
{0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01},
{0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE},