hbkr-rs 0.3.2

Hashblock Key Rotation
Documentation
1
2
3
4
5
6
7
8
9
10
//! hbkr Derivation trait

pub trait DerivationCode {
    fn code_len(&self) -> usize;
    fn derivative_b64_len(&self) -> usize;
    fn prefix_b64_len(&self) -> usize {
        self.code_len() + self.derivative_b64_len()
    }
    fn to_str(&self) -> String;
}