diff options
Diffstat (limited to 'src/lib/libcrypto/gost/gost2814789.c')
-rw-r--r-- | src/lib/libcrypto/gost/gost2814789.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/gost/gost2814789.c b/src/lib/libcrypto/gost/gost2814789.c index b1bef9eae3..e285413ed4 100644 --- a/src/lib/libcrypto/gost/gost2814789.c +++ b/src/lib/libcrypto/gost/gost2814789.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gost2814789.c,v 1.4 2015/02/10 09:46:30 miod Exp $ */ | 1 | /* $OpenBSD: gost2814789.c,v 1.5 2015/09/10 15:56:25 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -464,7 +464,7 @@ GOST2814789IMIT(const unsigned char *d, size_t n, unsigned char *md, int nid, | |||
464 | Gost2814789_set_key(&c.cipher, key, 256); | 464 | Gost2814789_set_key(&c.cipher, key, 256); |
465 | GOST2814789IMIT_Update(&c, d, n); | 465 | GOST2814789IMIT_Update(&c, d, n); |
466 | GOST2814789IMIT_Final(md, &c); | 466 | GOST2814789IMIT_Final(md, &c); |
467 | OPENSSL_cleanse(&c, sizeof(c)); | 467 | explicit_bzero(&c, sizeof(c)); |
468 | return (md); | 468 | return (md); |
469 | } | 469 | } |
470 | 470 | ||