Function gnunet_sys::GNUNET_CRYPTO_ecdsa_private_key_derive[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_ecdsa_private_key_derive(
    priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
    label: *const c_char,
    context: *const c_char
) -> *mut GNUNET_CRYPTO_EcdsaPrivateKey

@ingroup crypto Derive a private key from a given private key and a label. Essentially calculates a private key ‘h = H(l,P) * d mod n’ where n is the size of the ECC group and P is the public key associated with the private key ‘d’.

@param priv original private key @param label label to use for key deriviation @param context additional context to use for HKDF of ‘h’; typically the name of the subsystem/application @return derived private key