diff options
author | 2000-06-19 14:02:58 +0000 | |
---|---|---|
committer | 2000-06-19 14:02:58 +0000 | |
commit | 958957079e38f352a4b5adb3097a345351eabdb6 (patch) | |
tree | 99a06cc4f838ab1a4ea297db86b2c722b7206110 | |
parent | use blowfish instead of DES to encrypt user keys (diff) | |
download | wireguard-openbsd-958957079e38f352a4b5adb3097a345351eabdb6.tar.xz wireguard-openbsd-958957079e38f352a4b5adb3097a345351eabdb6.zip |
initialize iv
-rw-r--r-- | usr.bin/tcfs/tcfs_keymaint.c | 1 |
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)); |