From 61836c1b707f85f0573392d8532c4f837f678568 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 18 Sep 2007 20:58:33 +0000 Subject: [PATCH] Wire DES weak_keys to read-only segment. --- crypto/des/set_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/des/set_key.c b/crypto/des/set_key.c index d8499998b7..ccfad81c2e 100644 --- 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}, -- 2.25.1