diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 02:40:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 02:40:04 +0000 |
commit | b1b1f3ded2e0150fbbbd26a6dd9ef3bc41714ecb (patch) | |
tree | b41a9db77eec21cf58039e275fda96ab2b17b2bb /missing/des_tables.c | |
parent | 1f3ec6d858e649808079e57fe10ca93a943e1647 (diff) |
des_tables.c: generation rule
* defs/gmake.mk (missing/des_tables.c): move the recipe from
common.mk. this is less common.
* missing/crypt.c (init_des): if des_tables.c is empty, initialize
DES tables at runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/des_tables.c')
-rw-r--r-- | missing/des_tables.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/missing/des_tables.c b/missing/des_tables.c index 051659d553..ab6b1d1883 100644 --- a/missing/des_tables.c +++ b/missing/des_tables.c @@ -1,3 +1,5 @@ +#ifndef HAVE_DES_TABLES + /* Initial key schedule permutation */ static const C_block PC1ROT[64/CHUNKBITS][1<<CHUNKBITS] = { { @@ -1610,3 +1612,5 @@ static const C_block CF6464[64/CHUNKBITS][1<<CHUNKBITS] = { }, }; +#define HAVE_DES_TABLES 1 +#endif |