While this is public API in OpenSSL, there are no plans to expose it.
ok jsing
-/* $OpenBSD: ec_lib.c,v 1.67 2024/04/23 10:52:08 tb Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.68 2024/10/15 06:27:43 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
}
LCRYPTO_ALIAS(EC_GROUP_get_cofactor);
+const BIGNUM *
+EC_GROUP_get0_cofactor(const EC_GROUP *group)
+{
+ return &group->cofactor;
+}
+
void
EC_GROUP_set_curve_name(EC_GROUP *group, int nid)
{
-/* $OpenBSD: ec_local.h,v 1.28 2024/10/03 06:24:07 tb Exp $ */
+/* $OpenBSD: ec_local.h,v 1.29 2024/10/15 06:27:43 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx);
/* Public API in OpenSSL */
+const BIGNUM *EC_GROUP_get0_cofactor(const EC_GROUP *group);
const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
__END_HIDDEN_DECLS