diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-25 10:00:48 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-25 10:00:48 +0000 |
commit | 573269ef0f76282c210c809b1e36479e5d1aa9d3 (patch) | |
tree | baab66de84b67c6f9780732d5af162259def3cac /regress/sys/crypto | |
parent | 2f147189a74dbb2b5f1fdfc5ebe6c5d049dd7a4a (diff) |
clear before reuse
Diffstat (limited to 'regress/sys/crypto')
-rw-r--r-- | regress/sys/crypto/enc/des3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/crypto/enc/des3.c b/regress/sys/crypto/enc/des3.c index 64c0cdcfa78..c5438870de9 100644 --- a/regress/sys/crypto/enc/des3.c +++ b/regress/sys/crypto/enc/des3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: des3.c,v 1.1 2002/03/21 15:08:53 markus Exp $ */ +/* $OpenBSD: des3.c,v 1.2 2002/03/25 10:00:47 markus Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserverd. @@ -182,6 +182,7 @@ main(int argc, char **argv) printf("ok, encrypt with software, decrypt with /dev/crypto\n"); /* encrypt with /dev/crypto, decrypt with software */ + memset(b2, 0, sizeof(b2)); memcpy(iv, iv0, sizeof(iv0)); if (syscrypt(key, sizeof(key), iv, b1, b2, sizeof(b1), 1) < 0) { warnx("encrypt with /dev/crypto failed"); |