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