diff options
author | Werner Koch <[email protected]> | 2016-08-17 09:03:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-08-17 09:03:07 +0000 |
commit | e23eec8c9a602eee0a09851a54db0f5d611f125c (patch) | |
tree | 8aa4e846a7f47e85efc76b2c42582bf2c657f034 | |
parent | gpg: Avoid publishing the GnuPG version by default (diff) | |
download | gnupg-e23eec8c9a602eee0a09851a54db0f5d611f125c.tar.gz gnupg-e23eec8c9a602eee0a09851a54db0f5d611f125c.zip |
cipher: Improve readability by using a macro.
* cipher/random.c (mix_pool): Use DIGESTLEN instead of 20.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | cipher/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/random.c b/cipher/random.c index 7549517b3..be2f51a50 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -365,7 +365,7 @@ mix_pool(byte *pool) memcpy(hashbuf, pend - DIGESTLEN, DIGESTLEN ); memcpy(hashbuf+DIGESTLEN, pool, BLOCKLEN-DIGESTLEN); rmd160_mixblock( &md, hashbuf); - memcpy(pool, hashbuf, 20 ); + memcpy(pool, hashbuf, DIGESTLEN); p = pool; for( n=1; n < POOLBLOCKS; n++ ) { @@ -384,7 +384,7 @@ mix_pool(byte *pool) } rmd160_mixblock( &md, hashbuf); - memcpy(p, hashbuf, 20 ); + memcpy(p, hashbuf, DIGESTLEN); } burn_stack (384); /* for the rmd160_mixblock() */ } |