pub trait KeyEvolvingAlgorithm: AsymmetricKey {
    // Required methods
    fn get_period(key: &Self::Secret) -> u32;
    fn update(key: &mut Self::Secret) -> EvolvingStatus;
}

Required Methods§

source

fn get_period(key: &Self::Secret) -> u32

Get the period associated with this signature

source

fn update(key: &mut Self::Secret) -> EvolvingStatus

Update the secret key to the next period

if EvolvingStatus::Failed is returned, then the key couldn’t be updated

Implementors§