Function librsync::whole::signature

source ·
pub fn signature<R, W>(input: &mut R, output: &mut W) -> Result<u64>where
    R: Read + ?Sized,
    W: Write + ?Sized,
Expand description

Generates the signature of a basis input, by using default settings.

This function will consume the given input stream and attempt to write the resulting signature to the given output. In case of success, the number of bytes written is returned, otherwise an error is reported. Default settings are used to produce the signature. BLAKE2 for the hashing, 2048 bytes for the block length and full length for the strong signature size.