aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha512/sha512_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha512/sha512_test.go')
-rw-r--r--src/crypto/sha512/sha512_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/sha512/sha512_test.go b/src/crypto/sha512/sha512_test.go
index a3a136a19f..2c41d1a3ec 100644
--- a/src/crypto/sha512/sha512_test.go
+++ b/src/crypto/sha512/sha512_test.go
@@ -7,6 +7,7 @@
package sha512
import (
+ "crypto/internal/boring"
"crypto/rand"
"encoding/hex"
"hash"
@@ -307,6 +308,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)