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