librsync  2.0.1
mksum.c File Reference

Generate file signatures. More...

Go to the source code of this file.


rs_job_trs_sig_begin (size_t new_block_len, size_t strong_sum_len, rs_magic_number sig_magic)
 Start generating a signature. More...

Detailed Description

Generate file signatures.

Definition in file mksum.c.

Function Documentation

§ rs_sig_begin()

rs_job_t* rs_sig_begin ( size_t  new_block_len,
size_t  strong_sum_len,
rs_magic_number  sig_magic 

Start generating a signature.

A new rs_job_t into which the old file data can be passed.
sig_magicIndicates the version of signature file format to generate. See rs_magic_number.
new_block_lenSize of checksum blocks. Larger values make the signature shorter, and the delta longer.
strong_sum_lenIf non-zero, truncate the strong signatures to this many bytes, to make the signature shorter. It's recommended you leave this at zero to get the full strength.
See also

Definition at line 143 of file mksum.c.