wickr-crypto-c
|
Data Structures | |
struct | wickr_ec_curve |
Metadata about curve types to help with key generation, and signatures. More... | |
struct | wickr_ec_key |
Representation of public and private Elliptic Curve Keypair information as buffers. More... | |
Functions | |
wickr_ec_key_t * | wickr_ec_key_create (wickr_ec_curve_t curve, wickr_buffer_t *pub_data, wickr_buffer_t *pri_data) |
wickr_ec_key_t * | wickr_ec_key_copy (const wickr_ec_key_t *source) |
void | wickr_ec_key_destroy (wickr_ec_key_t **key) |
const wickr_ec_curve_t * | wickr_ec_curve_find (uint8_t identifier) |
const wickr_ec_curve_t* wickr_ec_curve_find | ( | uint8_t | identifier | ) |
Find an EC key by numerical identifier
identifier | the identifier in which to return the curve information for |
wickr_ec_key_t* wickr_ec_key_copy | ( | const wickr_ec_key_t * | source | ) |
Copy an EC Key
source | the EC key to copy |
wickr_ec_key_t* wickr_ec_key_create | ( | wickr_ec_curve_t | curve, |
wickr_buffer_t * | pub_data, | ||
wickr_buffer_t * | pri_data | ||
) |
Create an Elliptic Curve Keypair from components
NOTE: This function does not have the capability to generate key pair information, it simply constructs the data structure using pre-generated components. A crypto engine is required to generate random keypairs
curve | see 'wickr_ec_key' property documentation |
pub_data | see 'wickr_ec_key' property documentation |
pri_data | see 'wickr_ec_key' property documentation. May be NULL to represent a public key |
void wickr_ec_key_destroy | ( | wickr_ec_key_t ** | key | ) |
Destroy an EC Key
key | a pointer to the key to destroy. All properties of '*key' will also be destroyed |