summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2000-06-19 14:02:58 +0000
committerprovos <provos@openbsd.org>2000-06-19 14:02:58 +0000
commit958957079e38f352a4b5adb3097a345351eabdb6 (patch)
tree99a06cc4f838ab1a4ea297db86b2c722b7206110
parentuse blowfish instead of DES to encrypt user keys (diff)
downloadwireguard-openbsd-958957079e38f352a4b5adb3097a345351eabdb6.tar.xz
wireguard-openbsd-958957079e38f352a4b5adb3097a345351eabdb6.zip
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));