[][src]Function libthemis_sys::themis_gen_ec_key_pair

pub unsafe extern "C" fn themis_gen_ec_key_pair(
    private_key: *mut u8,
    private_key_length: *mut usize,
    public_key: *mut u8,
    public_key_length: *mut usize
) -> themis_status_t

@brief generate EC key pair @param [out] private_key buffer for private key to store. May be set to NULL for private key length determination @param [in, out] private_key_length length of private_key @param [out] public_key buffer for public key to store. May be set to NULL for public key length determination @param [in, out] public_key_length length of public key @return THEMIS_SUCCESS on success or THEMIS_FAIL on failure @note If private_key==NULL or public_key==NULL or private_key_length is not enought for private key storage or public_key_length is not enought for public key storage then THEMIS_BUFFER_TOO_SMALL will return and private_key_length and public_key_length will store lengths of buffers needed for private key and public key store respectively