Function gnunet_sys::GNUNET_CRYPTO_eddsa_private_key_from_string[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_eddsa_private_key_from_string(
    enc: *const c_char,
    enclen: usize,
    pub_: *mut GNUNET_CRYPTO_EddsaPrivateKey
) -> c_int

Convert a string representing a private key to a private key.

@param enc encoded public key @param enclen number of bytes in @a enc (without 0-terminator) @param priv where to store the private key @return #GNUNET_OK on success