diff options
author | Abirdcfly | 2022-08-10 13:18:07 +0800 |
---|---|---|
committer | rfjakob | 2022-08-15 14:24:18 +0200 |
commit | 702a2e19ccaba962449f3844d57f32e56711422e (patch) | |
tree | 8d4ed3d243d923aa653c35978f9b05d998c49372 /internal/stupidgcm | |
parent | e9ecff7f07aeb1efe0edec7b4b050ce3c0ef75f8 (diff) |
fix minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Diffstat (limited to 'internal/stupidgcm')
-rw-r--r-- | internal/stupidgcm/common_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/stupidgcm/common_test.go b/internal/stupidgcm/common_test.go index 1b32cfa..e5b14a4 100644 --- a/internal/stupidgcm/common_test.go +++ b/internal/stupidgcm/common_test.go @@ -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) } } } |