906172938a
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.
17 lines
214 B
Go
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()
|
|
}
|
|
}
|