38 #define P521_SIGNATURE_MAX_SIZE 143 44 #define P521_PUB_KEY_MAX_SIZE 134 46 typedef enum { EC_CURVE_ID_NIST_P521 } wickr_ec_curve_id;
73 static const wickr_ec_curve_t EC_CURVE_NIST_P521 = { EC_CURVE_ID_NIST_P521, P521_SIGNATURE_MAX_SIZE, P521_PUB_KEY_MAX_SIZE };
wickr_ec_curve_id identifier
Definition: eckey.h:66
wickr_buffer_t * pri_data
Definition: eckey.h:93
uint8_t signature_size
Definition: eckey.h:67
Representation of public and private Elliptic Curve Keypair information as buffers.
Definition: eckey.h:90
wickr_ec_curve_t curve
Definition: eckey.h:91
Represents an array of bytes and the length of the allocation associated with those bytes.
Definition: buffer.h:51
wickr_ec_key_t * wickr_ec_key_copy(const wickr_ec_key_t *source)
const wickr_ec_curve_t * wickr_ec_curve_find(uint8_t identifier)
void wickr_ec_key_destroy(wickr_ec_key_t **key)
wickr_ec_key_t * wickr_ec_key_create(wickr_ec_curve_t curve, wickr_buffer_t *pub_data, wickr_buffer_t *pri_data)
wickr_buffer_t * pub_data
Definition: eckey.h:92
Metadata about curve types to help with key generation, and signatures.
Definition: eckey.h:65