diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-06-19 14:02:59 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-06-19 14:02:59 +0000 |
commit | b3b5bc44e416215ba12a9e7a0be889c8efd6b47a (patch) | |
tree | e8b4ab8562dbd164b210db47cd3975c04985bc08 /usr.bin | |
parent | df441f86a113552ec627c874c7bd9d2ecd483c94 (diff) |
initialize iv
Diffstat (limited to 'usr.bin')
-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)); |