Function EC_KEY_oct2key

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

Decodes a EC_KEY public key from a octet string \param key key to decode \param buf memory buffer with the encoded ec point \param len length of the encoded ec point \param ctx BN_CTX object (optional) \return 1 on success and 0 if an error occurred