summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-10-28 18:44:12 +0000
committertb <>2024-10-28 18:44:12 +0000
commit479a0a8c7b8fdd258226aefac51baf99cbfa3fac (patch)
treec3e88f67a82dacc8d7e4820198adc66b78d99f24 /src
parentc006a5c026da894898b8764743a88da9ed591769 (diff)
downloadopenbsd-479a0a8c7b8fdd258226aefac51baf99cbfa3fac.tar.gz
openbsd-479a0a8c7b8fdd258226aefac51baf99cbfa3fac.tar.bz2
openbsd-479a0a8c7b8fdd258226aefac51baf99cbfa3fac.zip
Enable the tests that depend on correct private key padding
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ec/ec_asn1_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c
index ee4f86e5cf..6c84736ab4 100644
--- a/src/regress/lib/libcrypto/ec/ec_asn1_test.c
+++ b/src/regress/lib/libcrypto/ec/ec_asn1_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1_test.c,v 1.18 2024/10/26 20:50:53 tb Exp $ */ 1/* $OpenBSD: ec_asn1_test.c,v 1.19 2024/10/28 18:44:12 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org>
@@ -27,7 +27,7 @@
27/* set to 0 if/when we are going to enforce 0 <= a,b < p. */ 27/* set to 0 if/when we are going to enforce 0 <= a,b < p. */
28#define NEGATIVE_CURVE_COEFFICIENTS_ALLOWED 1 28#define NEGATIVE_CURVE_COEFFICIENTS_ALLOWED 1
29/* unifdef once private key padding in i2d_ECPrivateKey() is fixed. */ 29/* unifdef once private key padding in i2d_ECPrivateKey() is fixed. */
30#define CORRECT_PRIV_KEY_PADDING 0 30#define CORRECT_PRIV_KEY_PADDING 1
31 31
32static const uint8_t ec_secp256r1_pkparameters_named_curve[] = { 32static const uint8_t ec_secp256r1_pkparameters_named_curve[] = {
33 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 33 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03,