aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-05-04 22:34:52 +0200
committerJakob Unterwurzacher2016-05-05 00:09:08 +0200
commit906172938afcf40418d78d825ee4cd2b9363d643 (patch)
tree7cee410530141ce803b965b5e352a1ce1c24f03c /internal/stupidgcm
parentb4d45554f29e0e7352f7bd8942c402fb877d00a4 (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/stupidgcm')
-rw-r--r--internal/stupidgcm/stupidgcm_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/stupidgcm/stupidgcm_test.go b/internal/stupidgcm/stupidgcm_test.go
index dfd495d..82516b3 100644
--- a/internal/stupidgcm/stupidgcm_test.go
+++ b/internal/stupidgcm/stupidgcm_test.go
@@ -1,3 +1,10 @@
+// +build go1.5
+// = go 1.5 or higher
+//
+// 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.
+
package stupidgcm
import (