]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/sha512/sha512_test.go
[dev.boringcrypto] all: merge commit 9d0819b27c (CL 314609) into dev.boringcrypto
[gostls13.git] / src / crypto / sha512 / sha512_test.go
index 0e1528fc69f6018162473f9223557a7cfbee9d3a..966cd51d157ae31d3932a670f92586848e7fdc5e 100644 (file)
@@ -17,6 +17,8 @@ import (
        "testing"
 )
 
+import "crypto/internal/boring"
+
 type sha512Test struct {
        out       string
        in        string
@@ -822,6 +824,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)