Function EC_KEY_key2buf

Source
pub unsafe extern "C" fn EC_KEY_key2buf(
    key: *const ec_key_st,
    form: u32,
    pbuf: *mut *mut u8,
    ctx: *mut bignum_ctx,
) -> usize
Expand description

Encodes an EC_KEY public key to an allocated octet string \param key key to encode \param form point conversion form \param pbuf returns pointer to allocated buffer \param ctx BN_CTX object (optional) \return the length of the encoded octet string or 0 if an error occurred