Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
EC_GROUP_new, EC_GROUP_free, EC_GROUP_clear_free, EC_GROUP_new_curve_GFp, EC_GROUP_new_by_curve_name, EC_GROUP_set_curve, EC_GROUP_get_curve, EC_GROUP_set_curve_GFp, EC_GROUP_get_curve_GFp, EC_get_builtin_curves, EC_curve_nid2nist, EC_curve_nist2nid — create and destroy EC_GROUP objectsSYNOPSIS
#include <openssl/ec.h>#include <openssl/bn.h>
EC_GROUP_new(const EC_METHOD *meth);
EC_GROUP_free(EC_GROUP *group);
EC_GROUP_clear_free(EC_GROUP *group);
EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
EC_GROUP_new_by_curve_name(int nid);
EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems);
EC_curve_nid2nist(int nid);
EC_curve_nist2nid(const char *name);
DESCRIPTION
The EC library provides functions for performing operations on elliptic curves in Weierstrass form. Such curves are defined over the prime field of order p and satisfy the Weierstrass equation with coefficients a and by^2 = x^3 + ax + b
typedef struct { int nid; const char *comment; } EC_builtin_curve;
NIST name |
ASN.1 NID | notes |
“P-192” | NID_X9_62_prime192v1 |
deprecated in SP800-186 |
“P-224” | NID_secp224r1 | |
“P-256” | NID_X9_62_prime256v1 | |
“P-384” | NID_secp384r1 | |
“P-521” | NID_secp521r1 |