1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 20:10:03 +02:00

src/openssl/internal.h: Adding EC_KEY_new_secp256k1 macro

This commit is contained in:
Henrik Hautakoski 2023-03-22 14:33:48 +01:00
parent d695d1c9ad
commit 073955ab50

View file

@ -22,10 +22,13 @@
* SOFTWARE.
*/
#include <openssl/ec.h>
#include <openssl/hmac.h>
#ifndef LIBEOSIO_OPENSSL_INTERNAL_H
#define LIBEOSIO_OPENSSL_INTERNAL_H
#define EC_KEY_new_secp256k1() (EC_KEY_new_by_curve_name( NID_secp256k1 ))
#define EC_POINT_encode(group, point, buf, len, ctx) \
EC_POINT_point2oct((group), (point), POINT_CONVERSION_COMPRESSED, (buf), (len), (ctx))