diff options
Diffstat (limited to 'internal/cryptocore/cryptocore_go1.5_test.go')
-rw-r--r-- | internal/cryptocore/cryptocore_go1.5_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/cryptocore/cryptocore_go1.5_test.go b/internal/cryptocore/cryptocore_go1.5_test.go new file mode 100644 index 0000000..9e24979 --- /dev/null +++ b/internal/cryptocore/cryptocore_go1.5_test.go @@ -0,0 +1,17 @@ +// +build go1.5 +// = go 1.5 or higher + +package cryptocore + +import ( + "testing" +) + +// Native Go crypto with 128-bit IVs is only supported on Go 1.5 and up +func TestCryptoCoreNewGo15(t *testing.T) { + key := make([]byte, 32) + c := New(key, false, true) + if c.IVLen != 12 { + t.Fail() + } +} |