From ad21647f250697d88eade461c08073732d2cf7e0 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 8 Sep 2021 20:46:52 +0200 Subject: -speed: show which xchacha implementation is preferred --- internal/speed/speed.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/speed/speed.go b/internal/speed/speed.go index d5aa696..f7cb5d3 100644 --- a/internal/speed/speed.go +++ b/internal/speed/speed.go @@ -35,8 +35,8 @@ func Run() { {name: cryptocore.BackendOpenSSL.Name, f: bStupidGCM, preferred: stupidgcm.PreferOpenSSLAES256GCM()}, {name: cryptocore.BackendGoGCM.Name, f: bGoGCM, preferred: !stupidgcm.PreferOpenSSLAES256GCM()}, {name: cryptocore.BackendAESSIV.Name, f: bAESSIV, preferred: false}, - {name: cryptocore.BackendXChaCha20Poly1305.Name, f: bXchacha20poly1305, preferred: false}, - {name: cryptocore.BackendXChaCha20Poly1305OpenSSL.Name, f: bStupidXchacha, preferred: false}, + {name: cryptocore.BackendXChaCha20Poly1305OpenSSL.Name, f: bStupidXchacha, preferred: stupidgcm.PreferOpenSSLXchacha20poly1305()}, + {name: cryptocore.BackendXChaCha20Poly1305.Name, f: bXchacha20poly1305, preferred: !stupidgcm.PreferOpenSSLXchacha20poly1305()}, } for _, b := range bTable { fmt.Printf("%-26s\t", b.name) @@ -48,8 +48,6 @@ func Run() { } if b.preferred { fmt.Printf("\t(selected in auto mode)\n") - } else if b.name == cryptocore.BackendXChaCha20Poly1305.Name { - fmt.Printf("\t(use via -xchacha flag)\n") } else { fmt.Printf("\t\n") } -- cgit v1.2.3