From 85c2beccaf674c69b3e30b0d646f5c11d91ecb9b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 7 Sep 2021 18:11:11 +0200 Subject: stupidgcm: normalize constructor naming New() -> NewAES256GCM() Also add missing NewChacha20poly1305 constructor in without_openssl.go. --- internal/speed/speed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/speed/speed.go') diff --git a/internal/speed/speed.go b/internal/speed/speed.go index a696703..2f818d0 100644 --- a/internal/speed/speed.go +++ b/internal/speed/speed.go @@ -116,7 +116,7 @@ func bStupidGCM(b *testing.B) { if stupidgcm.BuiltWithoutOpenssl { b.Skip("openssl has been disabled at compile-time") } - bEncrypt(b, stupidgcm.New(randBytes(32), false)) + bEncrypt(b, stupidgcm.NewAES256GCM(randBytes(32), false)) } // bGoGCM benchmarks Go stdlib GCM -- cgit v1.2.3