Function gnunet_sys::GNUNET_IDENTITY_key_get_length[][src]

pub unsafe extern "C" fn GNUNET_IDENTITY_key_get_length(
    key: *const GNUNET_IDENTITY_PublicKey
) -> isize

Get the compacted length of a #GNUNET_IDENTITY_PublicKey. Compacted means that it returns the minimum number of bytes this key is long, as opposed to the union structure inside #GNUNET_IDENTITY_PublicKey. Useful for compact serializations.

@param key the key. @return -1 on error, else the compacted length of the key.