From e6ccf7f3c067b5b42261cd3fea0b99b52ee014bb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 4 May 2018 00:36:20 +0200 Subject: [PATCH] No cookie for @aead :) --- vendor/github.com/aead/chacha20/chacha/chacha_386.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/github.com/aead/chacha20/chacha/chacha_386.go b/vendor/github.com/aead/chacha20/chacha/chacha_386.go index 005183ec..49b9b5d6 100644 --- a/vendor/github.com/aead/chacha20/chacha/chacha_386.go +++ b/vendor/github.com/aead/chacha20/chacha/chacha_386.go @@ -52,7 +52,8 @@ func hChaCha20(out *[32]byte, nonce *[16]byte, key *[32]byte) { } func xorKeyStream(dst, src []byte, block, state *[64]byte, rounds int) int { - if useSSE2 { + switch { + case useSSE2: return xorKeyStreamSSE2(dst, src, block, state, rounds) default: return xorKeyStreamGeneric(dst, src, block, state, rounds)