diff options
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libcrypto/ec/ec_asn1_test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c index e8758ee259..b1eabdbfb1 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.29 2024/11/08 12:35:26 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1_test.c,v 1.30 2024/11/24 10:13:16 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> |
@@ -1035,6 +1035,7 @@ static const struct ec_private_key { | |||
1035 | int oct_len; | 1035 | int oct_len; |
1036 | uint8_t oct[256]; | 1036 | uint8_t oct[256]; |
1037 | } ec_private_keys[] = { | 1037 | } ec_private_keys[] = { |
1038 | #ifdef ENABLE_SMALL_CURVES | ||
1038 | { | 1039 | { |
1039 | .name = "secp112r1", | 1040 | .name = "secp112r1", |
1040 | .der_len = 64, | 1041 | .der_len = 64, |
@@ -1272,6 +1273,7 @@ static const struct ec_private_key { | |||
1272 | 0xdc, | 1273 | 0xdc, |
1273 | }, | 1274 | }, |
1274 | }, | 1275 | }, |
1276 | #endif /* ENABLE_SMALL_CURVES */ | ||
1275 | { | 1277 | { |
1276 | .name = "secp224k1", | 1278 | .name = "secp224k1", |
1277 | .der_len = 107, | 1279 | .der_len = 107, |
@@ -1519,6 +1521,7 @@ static const struct ec_private_key { | |||
1519 | 0x9c, 0x6b, 0xce, 0xc4, 0x8e, | 1521 | 0x9c, 0x6b, 0xce, 0xc4, 0x8e, |
1520 | }, | 1522 | }, |
1521 | }, | 1523 | }, |
1524 | #ifdef ENABLE_SMALL_CURVES | ||
1522 | { | 1525 | { |
1523 | .name = "prime192v1", | 1526 | .name = "prime192v1", |
1524 | .der_len = 97, | 1527 | .der_len = 97, |
@@ -1627,6 +1630,7 @@ static const struct ec_private_key { | |||
1627 | 0xd3, | 1630 | 0xd3, |
1628 | }, | 1631 | }, |
1629 | }, | 1632 | }, |
1633 | #endif /* ENABLE_SMALL_CURVES */ | ||
1630 | { | 1634 | { |
1631 | .name = "prime239v1", | 1635 | .name = "prime239v1", |
1632 | .der_len = 115, | 1636 | .der_len = 115, |
@@ -1790,6 +1794,7 @@ static const struct ec_private_key { | |||
1790 | 0xe3, | 1794 | 0xe3, |
1791 | }, | 1795 | }, |
1792 | }, | 1796 | }, |
1797 | #ifdef ENABLE_SMALL_CURVES | ||
1793 | { | 1798 | { |
1794 | .name = "wap-wsg-idm-ecid-wtls6", | 1799 | .name = "wap-wsg-idm-ecid-wtls6", |
1795 | .der_len = 64, | 1800 | .der_len = 64, |
@@ -2080,6 +2085,7 @@ static const struct ec_private_key { | |||
2080 | 0xc7, | 2085 | 0xc7, |
2081 | }, | 2086 | }, |
2082 | }, | 2087 | }, |
2088 | #endif /* ENABLE_SMALL_CURVES */ | ||
2083 | { | 2089 | { |
2084 | .name = "brainpoolP224r1", | 2090 | .name = "brainpoolP224r1", |
2085 | .der_len = 110, | 2091 | .der_len = 110, |