librsync
2.0.2
|
Go to the source code of this file.
Functions | |
static rs_result | rs_sig_s_header (rs_job_t *job) |
State of trying to send the signature header. More... | |
static rs_result | rs_sig_s_generate (rs_job_t *job) |
State of reading a block and trying to generate its sum. More... | |
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. More... | |
Generate file signatures.
Generating checksums is pretty easy, since we can always just process whatever data is available. When a whole block has arrived, or we've reached the end of the file, we write the checksum out.
Definition in file mksum.c.
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.
sig_magic | Indicates the version of signature file format to generate. See rs_magic_number. |
new_block_len | Size of checksum blocks. Larger values make the signature shorter, and the delta longer. |
strong_sum_len | If 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. |