From b2861782aadc3efce8a09710336a77dcbfc20e67 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 4 Sep 2024 08:02:41 +0800 Subject: [PATCH] sm3: copyResultsBy4 s390x test --- sm3/sm3blocks_s390x_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sm3/sm3blocks_s390x_test.go b/sm3/sm3blocks_s390x_test.go index a6f2a52..1467ab3 100644 --- a/sm3/sm3blocks_s390x_test.go +++ b/sm3/sm3blocks_s390x_test.go @@ -41,13 +41,13 @@ func TestCopyResultsBy4(t *testing.T) { } fmt.Println() } - var p [32]byte + var p [128]byte copyResultsBy4(&m[0][0], &p[0]) fmt.Println() fmt.Println() - for i := 0; i < 32; i++ { - fmt.Printf("%04x ", p[i]) - if i%8 == 7 { + for i := 0; i < 128; i++ { + fmt.Printf("%02x ", p[i]) + if i%16 == 15 { fmt.Println() } }