コード例 #1
0
ファイル: HashKey.cs プロジェクト: randacc/ravendb
		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);
			}
		}
コード例 #2
0
ファイル: HashKey.cs プロジェクト: WimVergouwe/ravendb
		public HashKey(byte[] buffer, int size)
		{
		    Strong = Encryptor.Current.Hash.Compute20(buffer, 0, size);
            Weak = new RabinKarpHasher(size).Init(buffer, 0, size);
		}
コード例 #3
0
ファイル: HashKey.cs プロジェクト: stvoidmain/ravendb
 public HashKey(byte[] buffer, int size)
 {
     Strong = Encryptor.Current.Hash.Compute20(buffer, 0, size);
     Weak   = new RabinKarpHasher(size).Init(buffer, 0, size);
 }