]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/sha512/sha512_test.go
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / crypto / sha512 / sha512_test.go
index 96a1aa69a4fcc090e7f4b08da4eb9e189078de4f..2d172c066a9cd239a74069335d6ac9fed228ca71 100644 (file)
@@ -8,6 +8,7 @@ package sha512
 
 import (
        "bytes"
+       "crypto/internal/boring"
        "crypto/rand"
        "encoding"
        "encoding/hex"
@@ -822,6 +823,9 @@ func TestBlockSize(t *testing.T) {
 
 // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match.
 func TestBlockGeneric(t *testing.T) {
+       if boring.Enabled {
+               t.Skip("BoringCrypto doesn't expose digest")
+       }
        gen, asm := New().(*digest), New().(*digest)
        buf := make([]byte, BlockSize*20) // arbitrary factor
        rand.Read(buf)