summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_asn1.c
diff options
context:
space:
mode:
authorjsing <>2022-09-03 16:01:23 +0000
committerjsing <>2022-09-03 16:01:23 +0000
commit2b62b98b944c0df9fbd9e41e33ea96b45b98e84b (patch)
treed9f88e7afb11bde7d7ebd46c83b3f0037af70b32 /src/lib/libcrypto/ecdsa/ecs_asn1.c
parente9a424bf46c6d5326b14f48a0a5b42722e9f5d15 (diff)
downloadopenbsd-2b62b98b944c0df9fbd9e41e33ea96b45b98e84b.tar.gz
openbsd-2b62b98b944c0df9fbd9e41e33ea96b45b98e84b.tar.bz2
openbsd-2b62b98b944c0df9fbd9e41e33ea96b45b98e84b.zip
Stop using CBIGNUM_it internal to libcrypto.
CBIGNUM_it is supposed to be the "clear bignum" or "secure" bignum - that is one which zeros its memory after use and ensures that the constant time flags are set... in LibreSSL we always do both of these things for BIGNUMs, so just use BIGNUM_it instead. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_asn1.c')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_asn1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_asn1.c b/src/lib/libcrypto/ecdsa/ecs_asn1.c
index 9a7a04468b..d4cbf1e308 100644
--- a/src/lib/libcrypto/ecdsa/ecs_asn1.c
+++ b/src/lib/libcrypto/ecdsa/ecs_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_asn1.c,v 1.10 2022/01/05 20:39:04 tb Exp $ */ 1/* $OpenBSD: ecs_asn1.c,v 1.11 2022/09/03 16:01:23 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -63,14 +63,14 @@ static const ASN1_TEMPLATE ECDSA_SIG_seq_tt[] = {
63 .tag = 0, 63 .tag = 0,
64 .offset = offsetof(ECDSA_SIG, r), 64 .offset = offsetof(ECDSA_SIG, r),
65 .field_name = "r", 65 .field_name = "r",
66 .item = &CBIGNUM_it, 66 .item = &BIGNUM_it,
67 }, 67 },
68 { 68 {
69 .flags = 0, 69 .flags = 0,
70 .tag = 0, 70 .tag = 0,
71 .offset = offsetof(ECDSA_SIG, s), 71 .offset = offsetof(ECDSA_SIG, s),
72 .field_name = "s", 72 .field_name = "s",
73 .item = &CBIGNUM_it, 73 .item = &BIGNUM_it,
74 }, 74 },
75}; 75};
76 76