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.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crypto/sha512/sha512_test.go b/src/crypto/sha512/sha512_test.go
index aea772c7da..99d1423527 100644
--- a/src/crypto/sha512/sha512_test.go
+++ b/src/crypto/sha512/sha512_test.go
@@ -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)
@@ -889,6 +894,9 @@ func TestLargeHashes(t *testing.T) {
}
func TestAllocations(t *testing.T) {
+ if boring.Enabled {
+ t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
+ }
in := []byte("hello, world!")
out := make([]byte, 0, Size)
h := New()