summaryrefslogtreecommitdiff
path: root/network/dnscrypt-proxy/poly1305.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/dnscrypt-proxy/poly1305.patch')
-rw-r--r--network/dnscrypt-proxy/poly1305.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/network/dnscrypt-proxy/poly1305.patch b/network/dnscrypt-proxy/poly1305.patch
new file mode 100644
index 0000000000..f701d6ae21
--- /dev/null
+++ b/network/dnscrypt-proxy/poly1305.patch
@@ -0,0 +1,20 @@
+diff --git a/vendor/github.com/aead/poly1305/poly1305_amd64.go b/vendor/github.com/aead/poly1305/poly1305_amd64.go
+index cd1a717..41b630f 100644
+--- a/vendor/github.com/aead/poly1305/poly1305_amd64.go
++++ b/vendor/github.com/aead/poly1305/poly1305_amd64.go
+@@ -7,13 +7,11 @@
+ package poly1305
+
+ import (
++ "golang.org/x/sys/cpu"
+ "io"
+ )
+
+-var useAVX2 = supportsAVX2()
+-
+-//go:noescape
+-func supportsAVX2() bool
++var useAVX2 = cpu.X86.HasAVX2
+
+ //go:noescape
+ func initialize(state *[7]uint64, key *[32]byte)