fix minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
parent
e9ecff7f07
commit
702a2e19cc
@ -52,11 +52,11 @@ func testEncryptDecrypt(t *testing.T, c1 cipher.AEAD, c2 cipher.AEAD) {
|
||||
|
||||
// Ciphertext must be identical to Go GCM
|
||||
if !bytes.Equal(c1out, c2out) {
|
||||
t.Fatalf("Compare failed for encryption, size %d", i)
|
||||
t.Log("c1out:")
|
||||
t.Log("\n" + hex.Dump(c1out))
|
||||
t.Log("c2out:")
|
||||
t.Log("\n" + hex.Dump(c2out))
|
||||
t.Fatalf("Compare failed for encryption, size %d", i)
|
||||
}
|
||||
|
||||
c1out2, sErr := c1.Open(dst, iv, c1out[len(dst):], authData)
|
||||
@ -115,11 +115,11 @@ func testInplaceSeal(t *testing.T, c1 cipher.AEAD, c2 cipher.AEAD) {
|
||||
|
||||
// Ciphertext must be identical to Go GCM
|
||||
if !bytes.Equal(c1out, c2out) {
|
||||
t.Fatalf("Compare failed for encryption, size %d", i)
|
||||
t.Log("sOut:")
|
||||
t.Log("\n" + hex.Dump(c1out))
|
||||
t.Log("gOut:")
|
||||
t.Log("\n" + hex.Dump(c2out))
|
||||
t.Fatalf("Compare failed for encryption, size %d", i)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user