summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/sha256.c')
-rw-r--r--src/lib/libcrypto/sha/sha256.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c
index c5ab56852f..d584660369 100644
--- a/src/lib/libcrypto/sha/sha256.c
+++ b/src/lib/libcrypto/sha/sha256.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha256.c,v 1.8 2014/08/18 19:11:48 bcook Exp $ */ 1/* $OpenBSD: sha256.c,v 1.9 2015/09/10 15:56:26 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved 3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved
4 * according to the OpenSSL license [found in ../../LICENSE]. 4 * according to the OpenSSL license [found in ../../LICENSE].
@@ -49,7 +49,7 @@ unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md)
49 SHA224_Init(&c); 49 SHA224_Init(&c);
50 SHA256_Update(&c,d,n); 50 SHA256_Update(&c,d,n);
51 SHA256_Final(md,&c); 51 SHA256_Final(md,&c);
52 OPENSSL_cleanse(&c,sizeof(c)); 52 explicit_bzero(&c,sizeof(c));
53 return(md); 53 return(md);
54 } 54 }
55 55
@@ -62,7 +62,7 @@ unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md)
62 SHA256_Init(&c); 62 SHA256_Init(&c);
63 SHA256_Update(&c,d,n); 63 SHA256_Update(&c,d,n);
64 SHA256_Final(md,&c); 64 SHA256_Final(md,&c);
65 OPENSSL_cleanse(&c,sizeof(c)); 65 explicit_bzero(&c,sizeof(c));
66 return(md); 66 return(md);
67 } 67 }
68 68