pub fn update_key_inplace_to_epoch(
    secret_key: &mut crypto::SecretKey,
    epoch: Epoch,
    seed: Randomness,
) {
    let mut rng = crypto::RAND_ChaCha20::new(seed.get());
    let tau = Tau::from(epoch);
    if epoch_from_miracl_secret_key(secret_key) < epoch {
        secret_key.update_to(&tau.0, &SYS_PARAMS, &mut rng);
    }
}
/// Updates the provided key.
///
/// Note: If the lowest supported epoch of the secret key is greater than or
/// equal to the threshold cutoff epoch, the secret key is unchanged.
///
/// This mutates the key inplace,
/// to avoid copying the sensitive information in memory.
///
/// # Arguments
/// * `secret_key` - The forward-secure encryption key to be updated.
/// * `epoch` - The earliest epoch at which to retain keys.
/// * `seed` - Randomness used in updating the secret key to the given `epoch`.
Updates the provided key.
Note: If the lowest supported epoch of the secret key is greater than or
equal to the threshold cutoff epoch, the secret key is unchanged.

This mutates the key inplace,
to avoid copying the sensitive information in memory.
Updates the provided key . Note : If the lowest supported epoch of the secret key is greater than or equal to the threshold cutoff epoch the secret key is unchanged . This mutates the key inplace to avoid copying the sensitive information in memory .
pub fn update_key_inplace_to_epoch(
    secret_key: &mut crypto::SecretKey,
    epoch: Epoch,
    seed: Randomness,
) {
    let mut rng = crypto::RAND_ChaCha20::new(seed.get());
    let tau = Tau::from(epoch);
    if epoch_from_miracl_secret_key(secret_key) < epoch {
        secret_key.update_to(&tau.0, &SYS_PARAMS, &mut rng);
    }
}
pub fn update_key_inplace_to_epoch ( secret_key : & mut crypto :: SecretKey , epoch : Epoch , seed : Randomness , ) { let mut rng = crypto :: RAND_ChaCha20 :: new ( seed . get ( ) ) ; let tau = Tau :: from ( epoch ) ; if epoch_from_miracl_secret_key ( secret_key ) < epoch { secret_key . update_to ( & tau . 0 , & SYS_PARAMS , & mut rng ) ; } }
Updates the provided key.
Updates the provided key .
secret_key
&mut crypto::SecretKey
epoch
Epoch
seed
Randomness
secret_key
&mut crypto::SecretKey
epoch
Epoch
seed
Randomness