public HashKey(byte[] buffer, int size) { using (var sha256 = SHA256.Create()) { Strong = sha256.ComputeHash(buffer, 0, size); Weak = new RabinKarpHasher(size).Init(buffer, 0, size); } }
public HashKey(byte[] buffer, int size) { Strong = Encryptor.Current.Hash.Compute20(buffer, 0, size); Weak = new RabinKarpHasher(size).Init(buffer, 0, size); }