libgocryptfs/internal/cryptocore/cryptocore_go1.5_test.go
Jakob Unterwurzacher 906172938a 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.
2016-05-05 00:09:08 +02:00

17 lines
214 B
Go

// +build go1.5
// = go 1.5 or higher
package cryptocore
import (
"testing"
)
func TestCryptoCoreNewGo15(t *testing.T) {
key := make([]byte, 32)
c := New(key, false, true)
if c.IVLen != 16 {
t.Fail()
}
}