pub fn hash_params(&mut self, params: ConcatKDFParams<'_>) {
        let hash = &mut self.hasher;
        hash.update((params.alg.len() as u32).to_be_bytes());
        hash.update(params.alg);
        hash.update((params.apu.len() as u32).to_be_bytes());
        hash.update(params.apu);
        hash.update((params.apv.len() as u32).to_be_bytes());
        hash.update(params.apv);
        hash.update(params.pub_info);
        hash.update(params.prv_info);
    }
/// Hash the parameters of the key derivation
Hash the parameters of the key derivation
Hash the parameters of the key derivation
pub fn hash_params(&mut self, params: ConcatKDFParams<'_>) {
        let hash = &mut self.hasher;
        hash.update((params.alg.len() as u32).to_be_bytes());
        hash.update(params.alg);
        hash.update((params.apu.len() as u32).to_be_bytes());
        hash.update(params.apu);
        hash.update((params.apv.len() as u32).to_be_bytes());
        hash.update(params.apv);
        hash.update(params.pub_info);
        hash.update(params.prv_info);
    }
pub fn hash_params ( & mut self , params : ConcatKDFParams < ' _ > ) { let hash = & mut self . hasher ; hash . update ( ( params . alg . len ( ) as u32 ) . to_be_bytes ( ) ) ; hash . update ( params . alg ) ; hash . update ( ( params . apu . len ( ) as u32 ) . to_be_bytes ( ) ) ; hash . update ( params . apu ) ; hash . update ( ( params . apv . len ( ) as u32 ) . to_be_bytes ( ) ) ; hash . update ( params . apv ) ; hash . update ( params . pub_info ) ; hash . update ( params . prv_info ) ; }
Hash the parameters of the key derivation
Hash the parameters of the key derivation
&mut self
params
ConcatKDFParams<'_>