Package duplicity :: Module librsync :: Class SigGenerator
[hide private]
[frames] | no frames]

Class SigGenerator

source code

Calculate signature.

Input and output is same as SigFile, but the interface is like md5 module, not filelike object

Instance Methods [hide private]
 
__init__(self, blocksize=2048)
Return new signature instance
source code
 
update(self, buf)
Add buf to data that signature will be calculated over
source code
 
process_buffer(self)
Run self.buffer through sig_maker, add to self.sig_string
source code
 
getsig(self)
Return signature over given data
source code