]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/sha512/sha512_test.go
[dev.boringcrypto] all: merge master (nearly Go 1.10 beta 1) into dev.boringcrypto
[gostls13.git] / src / crypto / sha512 / sha512_test.go
index 4423cf5f18952d1389e0665c292cf882c3ee0fb3..93c4591bd87d53552327386d75af454eb1326f72 100644 (file)
@@ -8,6 +8,7 @@ package sha512
 
 import (
        "bytes"
+       "crypto/internal/boring"
        "crypto/rand"
        "encoding"
        "encoding/hex"
@@ -821,6 +822,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)