summaryrefslogtreecommitdiffstats
path: root/g10/seskey.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-07 21:47:46 +0100
committerWerner Koch <wk@gnupg.org>1998-01-07 21:47:46 +0100
commit762d3d7197f622296ea5360a73c46c88dcd26308 (patch)
treecfd34485dc436ef861b4f625d20388f3776c232e /g10/seskey.c
parentpatch release 0.1.1 (diff)
downloadgnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.tar.xz
gnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.zip
patchlevel 2
Diffstat (limited to 'g10/seskey.c')
-rw-r--r--g10/seskey.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/seskey.c b/g10/seskey.c
index 7d3cba27b..2698c73c7 100644
--- a/g10/seskey.c
+++ b/g10/seskey.c
@@ -41,6 +41,10 @@ make_session_key( DEK *dek )
dek->keylen = 20;
randomize_buffer( dek->key, dek->keylen, 1 );
break;
+ case CIPHER_ALGO_BLOWFISH128:
+ dek->keylen = 16;
+ randomize_buffer( dek->key, dek->keylen, 1 );
+ break;
default: log_bug("invalid algo %d in make_session_key()\n");
}