aboutsummaryrefslogtreecommitdiff
path: root/internal/cryptocore/cryptocore_go1.5_test.go
blob: 9e249797d6ed90cbcb6a95991691445b7f142292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
	}
}