librsync  2.3.4
Data Structures | Macros | Typedefs | Functions
rollsum.h File Reference

The Rollsum class implementation of the original rsync rollsum. More...

Include dependency graph for rollsum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Rollsum
 The Rollsum state type. More...
 

Macros

#define ROLLSUM_CHAR_OFFSET   31
 

Typedefs

typedef struct Rollsum Rollsum
 The Rollsum state type. More...
 

Functions

void RollsumUpdate (Rollsum *sum, const unsigned char *buf, size_t len)
 
static void RollsumInit (Rollsum *sum)
 
static void RollsumRotate (Rollsum *sum, unsigned char out, unsigned char in)
 
static void RollsumRollin (Rollsum *sum, unsigned char in)
 
static void RollsumRollout (Rollsum *sum, unsigned char out)
 
static uint32_t RollsumDigest (Rollsum *sum)
 

Detailed Description

The Rollsum class implementation of the original rsync rollsum.

Definition in file rollsum.h.

Macro Definition Documentation

◆ ROLLSUM_CHAR_OFFSET

#define ROLLSUM_CHAR_OFFSET   31

Definition at line 33 of file rollsum.h.

Typedef Documentation

◆ Rollsum

typedef struct Rollsum Rollsum

The Rollsum state type.

Function Documentation

◆ RollsumUpdate()

void RollsumUpdate ( Rollsum sum,
const unsigned char *  buf,
size_t  len 
)

Definition at line 31 of file rollsum.c.

◆ RollsumInit()

static void RollsumInit ( Rollsum sum)
inlinestatic

Definition at line 46 of file rollsum.h.

◆ RollsumRotate()

static void RollsumRotate ( Rollsum sum,
unsigned char  out,
unsigned char  in 
)
inlinestatic

Definition at line 51 of file rollsum.h.

◆ RollsumRollin()

static void RollsumRollin ( Rollsum sum,
unsigned char  in 
)
inlinestatic

Definition at line 58 of file rollsum.h.

◆ RollsumRollout()

static void RollsumRollout ( Rollsum sum,
unsigned char  out 
)
inlinestatic

Definition at line 65 of file rollsum.h.

◆ RollsumDigest()

static uint32_t RollsumDigest ( Rollsum sum)
inlinestatic

Definition at line 72 of file rollsum.h.