From fa9aba2cd60b06f27afecc2ef044e38688421147 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 6 Sep 2024 15:03:53 +0800 Subject: [PATCH] sm3: test copyResultsBy4 --- sm3/sm3blocks_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sm3/sm3blocks_test.go b/sm3/sm3blocks_test.go index b613f01..19a0f84 100644 --- a/sm3/sm3blocks_test.go +++ b/sm3/sm3blocks_test.go @@ -110,11 +110,9 @@ func TestBlockMultBy4(t *testing.T) { func TestCopyResultsBy4(t *testing.T) { var m [4][8]uint32 var ret, expected [128]byte - var k uint32 = 0 for i := 0; i < 4; i++ { for j := 0; j < 8; j++ { - m[i][j] = k - k++ + m[i][j] = _K[i*4+j] } } copyResultsBy4(&m[0][0], &ret[0])