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;
75 static const wickr_ec_curve_t EC_CURVE_NIST_P521 = { EC_CURVE_ID_NIST_P521, P521_SIGNATURE_MAX_SIZE, P521_PUB_KEY_MAX_SIZE };
uint8_t signature_size
Definition: eckey.h:69
wickr_ec_key_t * wickr_ec_key_copy(const wickr_ec_key_t *source)
wickr_ec_curve_t curve
Definition: eckey.h:93
Metadata about curve types to help with key generation, and signatures.
Definition: eckey.h:67
const wickr_ec_curve_t * wickr_ec_curve_find(uint8_t identifier)
wickr_buffer_t * pri_data
Definition: eckey.h:95
uint8_t max_pub_size
Definition: eckey.h:70
Represents an array of bytes and the length of the allocation associated with those bytes.
Definition: buffer.h:51
wickr_buffer_t * pub_data
Definition: eckey.h:94
wickr_ec_key_t * wickr_ec_key_create(wickr_ec_curve_t curve, wickr_buffer_t *pub_data, wickr_buffer_t *pri_data)
void wickr_ec_key_destroy(wickr_ec_key_t **key)
Representation of public and private Elliptic Curve Keypair information as buffers.
Definition: eckey.h:92
wickr_ec_curve_id identifier
Definition: eckey.h:68