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:
ab011d5
)
Wire DES weak_keys to read-only segment [from HEAD].
author
Andy Polyakov
<appro@openssl.org>
Tue, 18 Sep 2007 20:59:33 +0000
(20:59 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 18 Sep 2007 20:59:33 +0000
(20:59 +0000)
crypto/des/set_key.c
patch
|
blob
|
history
diff --git
a/crypto/des/set_key.c
b/crypto/des/set_key.c
index 55efe03f4233c34e74faf4ee304fa008cd985c83..a43ef3c8818805d4c969439e6bed3382844c9d2e 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},