Beispiel #1
0
		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);
			}
		}
Beispiel #2
0
		public HashKey(byte[] buffer, int size)
		{
		    Strong = Encryptor.Current.Hash.Compute20(buffer, 0, size);
            Weak = new RabinKarpHasher(size).Init(buffer, 0, size);
		}
Beispiel #3
0
 public HashKey(byte[] buffer, int size)
 {
     Strong = Encryptor.Current.Hash.Compute20(buffer, 0, size);
     Weak   = new RabinKarpHasher(size).Init(buffer, 0, size);
 }