提交 61836c1b 编写于 作者: A Andy Polyakov

Wire DES weak_keys to read-only segment.

上级 2a1b0c8d
...@@ -115,7 +115,7 @@ int DES_check_key_parity(const_DES_cblock *key) ...@@ -115,7 +115,7 @@ int DES_check_key_parity(const_DES_cblock *key)
* (and actual cblock values). * (and actual cblock values).
*/ */
#define NUM_WEAK_KEY 16 #define NUM_WEAK_KEY 16
static DES_cblock weak_keys[NUM_WEAK_KEY]={ static const DES_cblock weak_keys[NUM_WEAK_KEY]={
/* weak keys */ /* weak keys */
{0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01}, {0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01},
{0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE}, {0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册