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