diff options
author | jsing <> | 2015-09-10 15:56:26 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 15:56:26 +0000 |
commit | 1b9402de2dd1b97eca2be1996ed51c82f0663c92 (patch) | |
tree | 27c1922db8e3f519794fe6a13a1dfba3d4759090 /src/lib/libcrypto/ec/ec_lib.c | |
parent | e1b77a3f14ebb06ead650e78b43ddd6546237b0a (diff) | |
download | openbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.tar.gz openbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.tar.bz2 openbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.zip |
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index a12a2ffbb6..c28ab18fc0 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lib.c,v 1.18 2015/05/20 04:33:35 miod Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.19 2015/09/10 15:56:25 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -152,10 +152,10 @@ EC_GROUP_clear_free(EC_GROUP * group) | |||
152 | BN_clear_free(&group->cofactor); | 152 | BN_clear_free(&group->cofactor); |
153 | 153 | ||
154 | if (group->seed) { | 154 | if (group->seed) { |
155 | OPENSSL_cleanse(group->seed, group->seed_len); | 155 | explicit_bzero(group->seed, group->seed_len); |
156 | free(group->seed); | 156 | free(group->seed); |
157 | } | 157 | } |
158 | OPENSSL_cleanse(group, sizeof *group); | 158 | explicit_bzero(group, sizeof *group); |
159 | free(group); | 159 | free(group); |
160 | } | 160 | } |
161 | 161 | ||
@@ -754,7 +754,7 @@ EC_POINT_clear_free(EC_POINT * point) | |||
754 | point->meth->point_clear_finish(point); | 754 | point->meth->point_clear_finish(point); |
755 | else if (point->meth->point_finish != 0) | 755 | else if (point->meth->point_finish != 0) |
756 | point->meth->point_finish(point); | 756 | point->meth->point_finish(point); |
757 | OPENSSL_cleanse(point, sizeof *point); | 757 | explicit_bzero(point, sizeof *point); |
758 | free(point); | 758 | free(point); |
759 | } | 759 | } |
760 | 760 | ||