Exemplo n.º 1
0
 public Hasher Update(byte[] buf)
 {
     Bindings.rhash_update(ptr, buf, buf.Length);
     return(this);
 }
Exemplo n.º 2
0
 public void Reset()
 {
     Bindings.rhash_reset(ptr);
 }
Exemplo n.º 3
0
 public Hasher(HashType hashtype)
 {
     this.hash_ids = (uint)hashtype;
     this.ptr      = Bindings.rhash_init(hash_ids);
 }
Exemplo n.º 4
0
 public void Finish()
 {
     Bindings.rhash_final(ptr, IntPtr.Zero);
 }