-/* $OpenBSD: ec_point_conversion.c,v 1.7 2022/12/01 13:49:12 tb Exp $ */
+/* $OpenBSD: ec_point_conversion.c,v 1.8 2023/03/25 09:23:44 tb Exp $ */
/*
* Copyright (c) 2021 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
return failed;
}
+#ifndef OPENSSL_NO_EC2M
static int
test_hybrid_corner_case(void)
{
return failed;
}
+#endif
/* XXX This only tests multiples of the generator for now... */
static int
uint8_t octets_len;
int valid;
} point_conversions[] = {
+#ifndef OPENSSL_NO_EC2M
{
.description = "point at infinity on sect571k1",
.nid = NID_sect571k1,
.octets_len = 145,
.valid = 0,
},
-
+#endif
{
.description = "point at infinity on secp256r1",
.nid = NID_X9_62_prime256v1,
int failed = 0;
failed |= test_random_points();
+#ifndef OPENSSL_NO_EC2M
failed |= test_hybrid_corner_case();
+#endif
failed |= test_point_conversions();
return failed;