summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa
diff options
context:
space:
mode:
authorjsing <>2022-09-03 16:01:23 +0000
committerjsing <>2022-09-03 16:01:23 +0000
commitd0cf54fdf2a9431fe817cbc6f9a450c5ae431bef (patch)
treed9f88e7afb11bde7d7ebd46c83b3f0037af70b32 /src/lib/libcrypto/ecdsa
parent683000615ee42607c643c323988c280f7edb4247 (diff)
downloadopenbsd-d0cf54fdf2a9431fe817cbc6f9a450c5ae431bef.tar.gz
openbsd-d0cf54fdf2a9431fe817cbc6f9a450c5ae431bef.tar.bz2
openbsd-d0cf54fdf2a9431fe817cbc6f9a450c5ae431bef.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')
-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