Function EC_KEY_priv2oct

Source
pub unsafe extern "C" fn EC_KEY_priv2oct(
    key: *const ec_key_st,
    buf: *mut u8,
    len: usize,
) -> usize
Expand description

Encodes a EC_KEY private key to an octet string \param key key to encode \param buf memory buffer for the result. If NULL the function returns required buffer size. \param len length of the memory buffer \return the length of the encoded octet string or 0 if an error occurred