From 38f3cc71a08dd24696f0fead560e5675f24c6825 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 20 Nov 2018 20:45:21 +0800 Subject: more cleaning --- source/pdf/pdf-crypt.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index b5a96c1b..88b69834 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -78,33 +78,6 @@ static void fcn_40c120(mt19937* ctx) uint32_t mt19937_next(mt19937 *ctx) { - uint32_t eax = ctx->n; - if (eax == 624) { - fcn_40c120(ctx); - } else if (eax >= 1248) { - fcn_40c060(ctx); - } - eax = ctx->n; - uint32_t edx = ctx->MT[eax]; - eax++; - ctx->n = eax; - uint32_t ecx = edx; - eax = ctx->cc; - ecx >>= 11; - eax &= ecx; - edx ^= eax; - eax = edx & 0xff3a58ad; - eax <<= 7; - edx ^= eax; - eax = edx; - eax &= 0xffffdf8c; - eax <<= 15; - edx ^= eax; - eax = edx; - eax >>= 0x12; - eax ^= edx; - return eax; -#if 0 int n = ctx->n; uint32_t eax, edx; @@ -122,7 +95,6 @@ uint32_t mt19937_next(mt19937 *ctx) edx ^= eax; eax = edx >> 18; return eax ^ edx; -#endif } void mt19937_init(mt19937 *ctx, uint32_t seed) -- cgit v1.2.3