kdf-sm3: arm64 debug

This commit is contained in:
Sun Yimin 2024-05-21 14:42:46 +08:00 committed by GitHub
parent 0ab5fb5baa
commit 79af12761c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
VST1.P [V12.B16, V13.B16, V14.B16, V15.B16], 64(wordPtr)
#define LOAD_T(const, T) \
MOVD $const, R20 \
MOVW $const, R20 \
VDUP R20, T.S4 \
#define ROUND_00_11(index, const, a, b, c, d, e, f, g, h) \

View File

@ -51,7 +51,7 @@ func createTwoBlocksBy4() [4]*byte {
func TestBlockMultBy4(t *testing.T) {
digs := initState4()
p := createOneBlockBy4()
buffer := make([]byte, 1216)
buffer := make([]byte, preallocSize)
blockMultBy4(&digs[0], &p[0], &buffer[0], 1)
expected := "[66c7f0f4 62eeedd9 d1f2d46b dc10e4e2 4167c487 5cf2f7a2 297da02b 8f4ba8e0]"
for i := 128; i < 128+68*4*4; i += 64 {