예제 #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);
 }