mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
kdf-sm3: arm64 debug
This commit is contained in:
parent
0ab5fb5baa
commit
79af12761c
@ -59,7 +59,7 @@
|
|||||||
VST1.P [V12.B16, V13.B16, V14.B16, V15.B16], 64(wordPtr)
|
VST1.P [V12.B16, V13.B16, V14.B16, V15.B16], 64(wordPtr)
|
||||||
|
|
||||||
#define LOAD_T(const, T) \
|
#define LOAD_T(const, T) \
|
||||||
MOVD $const, R20 \
|
MOVW $const, R20 \
|
||||||
VDUP R20, T.S4 \
|
VDUP R20, T.S4 \
|
||||||
|
|
||||||
#define ROUND_00_11(index, const, a, b, c, d, e, f, g, h) \
|
#define ROUND_00_11(index, const, a, b, c, d, e, f, g, h) \
|
||||||
|
@ -51,7 +51,7 @@ func createTwoBlocksBy4() [4]*byte {
|
|||||||
func TestBlockMultBy4(t *testing.T) {
|
func TestBlockMultBy4(t *testing.T) {
|
||||||
digs := initState4()
|
digs := initState4()
|
||||||
p := createOneBlockBy4()
|
p := createOneBlockBy4()
|
||||||
buffer := make([]byte, 1216)
|
buffer := make([]byte, preallocSize)
|
||||||
blockMultBy4(&digs[0], &p[0], &buffer[0], 1)
|
blockMultBy4(&digs[0], &p[0], &buffer[0], 1)
|
||||||
expected := "[66c7f0f4 62eeedd9 d1f2d46b dc10e4e2 4167c487 5cf2f7a2 297da02b 8f4ba8e0]"
|
expected := "[66c7f0f4 62eeedd9 d1f2d46b dc10e4e2 4167c487 5cf2f7a2 297da02b 8f4ba8e0]"
|
||||||
for i := 128; i < 128+68*4*4; i += 64 {
|
for i := 128; i < 128+68*4*4; i += 64 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user