aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-05-04 19:09:14 +0200
committerJakob Unterwurzacher2016-05-04 19:56:07 +0200
commit39f3a24484ffc343d2d5225d5c419082aabb9baa (patch)
tree04b9d7aa98ef3e18f05b00efe39e5288baeed5c4 /Documentation
parentc92190bf07d27a4c7fbecba5778d11c77c52574e (diff)
stupidgcm: completely replace spacemonkeygo/openssl
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/openssl-gcm.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/openssl-gcm.md b/Documentation/openssl-gcm.md
new file mode 100644
index 0000000..d955b39
--- /dev/null
+++ b/Documentation/openssl-gcm.md
@@ -0,0 +1,13 @@
+Go builtin GCM vs OpenSSL
+=========================
+
+OpenSSL is over four times faster than Go's built-in GCM implementation.
+
+```
+$ cd internal/stupidgcm
+$ go test -bench .
+PASS
+Benchmark4kEncStupidGCM-2 50000 25860 ns/op 158.39 MB/s
+Benchmark4kEncGoGCM-2 10000 116050 ns/op 35.29 MB/s
+ok github.com/rfjakob/gocryptfs/internal/stupidgcm 3.667s
+```