1
// Copyright 2015 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
11
func BenchmarkEncrypt(b *testing.B) {
12
r, _ := New([]byte{0, 0, 0, 0, 0, 0, 0, 0}, 64)
15
for i := 0; i < b.N; i++ {
16
r.Encrypt(src[:], src[:])
20
func BenchmarkDecrypt(b *testing.B) {
21
r, _ := New([]byte{0, 0, 0, 0, 0, 0, 0, 0}, 64)
24
for i := 0; i < b.N; i++ {
25
r.Decrypt(src[:], src[:])