aboutsummaryrefslogtreecommitdiffstats
path: root/g10/passphrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r--g10/passphrase.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c
index 7c4f78f68..0da40e3c0 100644
--- a/g10/passphrase.c
+++ b/g10/passphrase.c
@@ -1115,13 +1115,7 @@ hash_passphrase( DEK *dek, char *pw, STRING2KEY *s2k, int create )
md = md_open( s2k->hash_algo, 1);
for(pass=0; used < dek->keylen ; pass++ ) {
if( pass ) {
- if( (opt.emulate_bugs & EMUBUG_3DESS2K)) {
- int tmp = md->finalized;
- md_reset( md );
- md->finalized = tmp;
- }
- else
- md_reset(md);
+ md_reset(md);
for(i=0; i < pass; i++ ) /* preset the hash context */
md_putc(md, 0 );
}