• David du Colombier's avatar
    crypto/sha512: fix checkAVX2 · a38a2d02
    David du Colombier authored
    The checkAVX2 test doesn't appear to be correct,
    because it always returns the value of support_bmi2,
    even if the value of support_avx2 is false.
    
    Consequently, checkAVX2 always returns true, as long
    as BMI2 is supported, even if AVX2 is not supported.
    
    We change checkAVX2 to return false when support_avx2
    is false.
    
    Fixes #19316.
    
    Change-Id: I2ec9dfaa09f4b54c4a03d60efef891b955d60578
    Reviewed-on: https://go-review.googlesource.com/37590
    Run-TryBot: David du Colombier <0intro@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    a38a2d02
Name
Last commit
Last update
..
aes Loading commit data...
cipher Loading commit data...
des Loading commit data...
dsa Loading commit data...
ecdsa Loading commit data...
elliptic Loading commit data...
hmac Loading commit data...
internal/cipherhw Loading commit data...
md5 Loading commit data...
rand Loading commit data...
rc4 Loading commit data...
rsa Loading commit data...
sha1 Loading commit data...
sha256 Loading commit data...
sha512 Loading commit data...
subtle Loading commit data...
tls Loading commit data...
x509 Loading commit data...
crypto.go Loading commit data...