谁能解释一下这个函数的这些参数是什么?

发布于 2025-01-16 10:25:16 字数 249 浏览 5 评论 0原文

int EC_POINT_set_compressed_coordinates_GFp (const EC_GROUP *group, EC_POINT *p, const BIGNUM *x, int y_bit, BN_CTX *ctx);

我只想将随机生成的 ECDH 公钥设置为 X9.62 压缩的 组 P-256 的 GFp 上的点的坐标,假设 y 位为 0。

但是随机生成的 ECDH 公钥是十六进制字符串(已经转换为某种十六进制字符串格式)?

int EC_POINT_set_compressed_coordinates_GFp
(const EC_GROUP *group, EC_POINT *p,
const BIGNUM *x, int y_bit, BN_CTX *ctx);

I just want to set the randomly generated ECDH public key as the X9.62 compressed
coordinate of a point over GFp for group P-256 , assuming 0 as the y-bit.

but that randomly generated ECDH public key is in hex string(already converted to some format to hex string)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文