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:
parent
d695d1c9ad
commit
073955ab50
1 changed files with 3 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue