diff options
Diffstat (limited to 'internal/cryptocore/cryptocore_test.go')
-rw-r--r-- | internal/cryptocore/cryptocore_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/cryptocore/cryptocore_test.go b/internal/cryptocore/cryptocore_test.go index c54eac9..252c311 100644 --- a/internal/cryptocore/cryptocore_test.go +++ b/internal/cryptocore/cryptocore_test.go @@ -16,7 +16,10 @@ func TestCryptoCoreNew(t *testing.T) { if c.IVLen != 12 { t.Fail() } - // "New(key, BackendGoGCM, 128)" is tested for Go 1.4 and 1.5+ separately + c = New(key, BackendGoGCM, 128) + if c.IVLen != 16 { + t.Fail() + } } // "New" should panic on any key not 32 bytes long |