libgocryptfs/internal/stupidgcm/chacha_test.go
Jakob Unterwurzacher 003a7fa2e5 make format
2022-08-28 11:11:36 +02:00

22 lines
341 B
Go

//go:build !without_openssl
// +build !without_openssl
package stupidgcm
import (
"testing"
"golang.org/x/crypto/chacha20poly1305"
)
func TestStupidChacha20poly1305(t *testing.T) {
key := randBytes(32)
c := NewChacha20poly1305(key)
ref, err := chacha20poly1305.New(key)
if err != nil {
t.Fatal(err)
}
testCiphers(t, c, ref)
}