summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-06-19 14:02:59 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-06-19 14:02:59 +0000
commitb3b5bc44e416215ba12a9e7a0be889c8efd6b47a (patch)
treee8b4ab8562dbd164b210db47cd3975c04985bc08
parentdf441f86a113552ec627c874c7bd9d2ecd483c94 (diff)
initialize iv
-rw-r--r--usr.bin/tcfs/tcfs_keymaint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfs_keymaint.c b/usr.bin/tcfs/tcfs_keymaint.c
index 2438b615c92..156fc8b2847 100644
--- a/usr.bin/tcfs/tcfs_keymaint.c
+++ b/usr.bin/tcfs/tcfs_keymaint.c
@@ -117,6 +117,7 @@ tcfs_encrypt_key (char *u, char *pw, unsigned char *key, unsigned char *ek,
}
blf_key(&ctx, pass, strlen(pass));
+ memset(iv, 0, sizeof(iv));
blf_cbc_encrypt(&ctx, iv, key, keysize);
memset(&ctx, 0, sizeof(ctx));