diff options
author | Jakob Unterwurzacher | 2021-09-08 19:48:13 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-09-08 19:48:13 +0200 |
commit | 1a5866729387c09eca1cdc9737d1b02c74c25901 (patch) | |
tree | f4f3e067a23fad3f34f9b555ec8b27799bc7412c /internal/speed/speed.go | |
parent | 85c2beccaf674c69b3e30b0d646f5c11d91ecb9b (diff) |
stupidgcm: add PreferOpenSSL{AES256GCM,Xchacha20poly1305}
Add PreferOpenSSLXchacha20poly1305,
rename PreferOpenSSL -> PreferOpenSSLAES256GCM.
Diffstat (limited to 'internal/speed/speed.go')
-rw-r--r-- | internal/speed/speed.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/speed/speed.go b/internal/speed/speed.go index 2f818d0..d5aa696 100644 --- a/internal/speed/speed.go +++ b/internal/speed/speed.go @@ -32,8 +32,8 @@ func Run() { f func(*testing.B) preferred bool }{ - {name: cryptocore.BackendOpenSSL.Name, f: bStupidGCM, preferred: stupidgcm.PreferOpenSSL()}, - {name: cryptocore.BackendGoGCM.Name, f: bGoGCM, preferred: !stupidgcm.PreferOpenSSL()}, + {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}, |