x/crypto/chacha20poly1305: unconditional use of PSHUFB instruction on amd64 #63871
Labels
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
It looks like golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.s uses PSHUFB instructions unconditionally, even when built for GOAMD64=v1. PSHUFB is part of SSSE3 which is only v2+. In my version of similar code for chacha8rand I didn't want the overhead of two copies of the code and a runtime switch, so I just did
That may be fine for this code too, since newer x86 chips are going to use the AVX code path anyway.
The text was updated successfully, but these errors were encountered: