fn rekeygen<In: Read, Out: Write>(k1: Self::K, k2: Self::K, ct_hdr: &mut In, token: &mut Out) -> Result<()> {
        let mut buf = Vec::new();
        C::decrypt(k1, ct_hdr, &mut buf)?;
        C::encrypt(k2, &mut (&buf[..]), token)
    }
/* Writes a re-keying token to a file for a pair of keys and a ciphertext */
Writes a re-keying token to a file for a pair of keys and a ciphertext
Writes a re - keying token to a file for a pair of keys and a ciphertext
fn rekeygen<In: Read, Out: Write>(k1: Self::K, k2: Self::K, ct_hdr: &mut In, token: &mut Out) -> Result<()> {
        let mut buf = Vec::new();
        C::decrypt(k1, ct_hdr, &mut buf)?;
        C::encrypt(k2, &mut (&buf[..]), token)
    }
fn rekeygen < In : Read , Out : Write > ( k1 : Self :: K , k2 : Self :: K , ct_hdr : & mut In , token : & mut Out ) -> Result < ( ) > { let mut buf = Vec :: new ( ) ; C :: decrypt ( k1 , ct_hdr , & mut buf ) ? ; C :: encrypt ( k2 , & mut ( & buf [ .. ] ) , token ) }
Writes a re-keying token to a file for a pair of keys and a ciphertext
Writes a re - keying token to a file for a pair of keys and a ciphertext
k1
Self::K
k2
Self::K
ct_hdr
&mut In
token
&mut Out
k1
Self::K
k2
Self::K
ct_hdr
&mut In
token
&mut Out