aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm
diff options
context:
space:
mode:
authorYuta Hayashibe2022-05-04 18:06:20 +0900
committerrfjakob2022-06-26 10:59:06 +0200
commite9ecff7f07aeb1efe0edec7b4b050ce3c0ef75f8 (patch)
tree94d0da7da7c22b65ccfa5cc99cb7e9d5e6322d07 /internal/stupidgcm
parentc9e4e4f74150d2734496e90a4c442a17b79f52c1 (diff)
Fix typos
Diffstat (limited to 'internal/stupidgcm')
-rw-r--r--internal/stupidgcm/openssl.go2
-rw-r--r--internal/stupidgcm/prefer.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/stupidgcm/openssl.go b/internal/stupidgcm/openssl.go
index ae0ee5c..b46fba8 100644
--- a/internal/stupidgcm/openssl.go
+++ b/internal/stupidgcm/openssl.go
@@ -117,7 +117,7 @@ func slicePointerOrNull(s []byte) (ptr *C.uchar) {
}
// This functions exists to benchmark the C call overhead from Go.
-// See BenchmarkCCall for resuts.
+// See BenchmarkCCall for results.
func noopCFunction() {
C.noop_c_function()
}
diff --git a/internal/stupidgcm/prefer.go b/internal/stupidgcm/prefer.go
index bb613c3..fe8c613 100644
--- a/internal/stupidgcm/prefer.go
+++ b/internal/stupidgcm/prefer.go
@@ -40,7 +40,7 @@ func PreferOpenSSLXchacha20poly1305() bool {
if runtime.GOARCH == "amd64" {
return false
}
- // On arm64 and arm, OpenSSL is faster. Probably everwhere else too.
+ // On arm64 and arm, OpenSSL is faster. Probably everywhere else too.
return true
}