mirror of
https://github.com/slackhq/nebula.git
synced 2026-07-01 02:50:29 +02:00
use testing log
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/fips140"
|
"crypto/fips140"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"log"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@@ -29,7 +28,7 @@ func TestNewAESGCM(t *testing.T) {
|
|||||||
aead := c.(cipher.AEAD)
|
aead := c.(cipher.AEAD)
|
||||||
|
|
||||||
dst := aead.Seal([]byte{}, iv, plaintext, aad)
|
dst := aead.Seal([]byte{}, iv, plaintext, aad)
|
||||||
log.Printf("%x", dst)
|
t.Logf("%x", dst)
|
||||||
assert.Equal(t, expected, dst)
|
assert.Equal(t, expected, dst)
|
||||||
|
|
||||||
// We expect this to fail since we are re-encrypting with a repeat IV
|
// We expect this to fail since we are re-encrypting with a repeat IV
|
||||||
|
|||||||
Reference in New Issue
Block a user