Пример #1
0
 void VerifyDerivedKey(TestVector testVector)
 {
     VerifyAllAtOnce(() => new Blake3DerivedKey(DerivedKeyContext, DerivedKeyContextEncoding),
                     testVector.InputLength,
                     testVector.DerivedKeyHash);
 }
Пример #2
0
 void VerifyKeyedHashOneAtATime(TestVector testVector)
 {
     VerifyOneAtATime(() => new Blake3Keyed(testVector.Key.FromHex()),
                      testVector.InputLength,
                      testVector.KeyedHash);
 }
Пример #3
0
 void VerifyHashOneAtATime(TestVector testVector)
 {
     VerifyOneAtATime(() => new Blake3(),
                      testVector.InputLength,
                      testVector.Hash);
 }
Пример #4
0
 void VerifyKeyedHash(TestVector testVector)
 {
     VerifyAllAtOnce(() => new Blake3Keyed(testVector.Key.FromHex()),
                     testVector.InputLength,
                     testVector.KeyedHash);
 }
Пример #5
0
 void VerifyHash(TestVector testVector)
 {
     VerifyAllAtOnce(() => new Blake3(),
                     testVector.InputLength,
                     testVector.Hash);
 }