diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nistz256.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistz256.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistz256.c b/src/lib/libcrypto/ec/ecp_nistz256.c index 848f15cb17..b3b8f74b14 100644 --- a/src/lib/libcrypto/ec/ecp_nistz256.c +++ b/src/lib/libcrypto/ec/ecp_nistz256.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_nistz256.c,v 1.2 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: ecp_nistz256.c,v 1.3 2017/05/02 03:59:44 deraadt Exp $ */ |
2 | /* Copyright (c) 2014, Intel Corporation. | 2 | /* Copyright (c) 2014, Intel Corporation. |
3 | * | 3 | * |
4 | * Permission to use, copy, modify, and/or distribute this software for any | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
@@ -1118,11 +1118,9 @@ ecp_nistz256_pre_comp_clear_free(void *pre_) | |||
1118 | * here, but the only place where we allocate this uses | 1118 | * here, but the only place where we allocate this uses |
1119 | * PRECOMP256_ROW (i.e. 64 P256_POINT_AFFINE) but sets w == 7. | 1119 | * PRECOMP256_ROW (i.e. 64 P256_POINT_AFFINE) but sets w == 7. |
1120 | */ | 1120 | */ |
1121 | explicit_bzero(pre->precomp, 37 * sizeof(PRECOMP256_ROW)); | 1121 | freezero(pre->precomp, 37 * sizeof(PRECOMP256_ROW)); |
1122 | free(pre->precomp); | ||
1123 | } | 1122 | } |
1124 | explicit_bzero(pre, sizeof *pre); | 1123 | freezero(pre, sizeof *pre); |
1125 | free(pre); | ||
1126 | } | 1124 | } |
1127 | 1125 | ||
1128 | static int | 1126 | static int |