diff options
author | Jakob Unterwurzacher | 2016-05-04 22:34:52 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-05-05 00:09:08 +0200 |
commit | 906172938afcf40418d78d825ee4cd2b9363d643 (patch) | |
tree | 7cee410530141ce803b965b5e352a1ce1c24f03c /internal/cryptocore | |
parent | b4d45554f29e0e7352f7bd8942c402fb877d00a4 (diff) |
stupidgcm: skip tests on Go 1.4 and older
Quoting from the patch:
We compare against Go's built-in GCM implementation. Since stupidgcm only
supports 128-bit IVs and Go only supports that from 1.5 onward, we cannot
run these tests on older Go versions.
Diffstat (limited to 'internal/cryptocore')
-rw-r--r-- | internal/cryptocore/cryptocore_go1.5_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/cryptocore/cryptocore_go1.5_test.go b/internal/cryptocore/cryptocore_go1.5_test.go index 9e24979..1c93254 100644 --- a/internal/cryptocore/cryptocore_go1.5_test.go +++ b/internal/cryptocore/cryptocore_go1.5_test.go @@ -7,11 +7,10 @@ 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 { + if c.IVLen != 16 { t.Fail() } } |