-/* $OpenBSD: ec_lib.c,v 1.61 2023/06/25 18:52:27 tb Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.62 2023/07/03 07:26:40 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
return group->generator;
}
-
int
EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
{
return !BN_is_zero(order);
}
+const BIGNUM *
+EC_GROUP_get0_order(const EC_GROUP *group)
+{
+ return &group->order;
+}
+
int
EC_GROUP_order_bits(const EC_GROUP *group)
{
-/* $OpenBSD: ec_local.h,v 1.22 2023/06/27 07:31:18 tb Exp $ */
+/* $OpenBSD: ec_local.h,v 1.23 2023/07/03 07:26:40 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group,
const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx);
+/* Public API in OpenSSL */
+const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
+
__END_HIDDEN_DECLS