mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
fix test case
This commit is contained in:
parent
a88c13298b
commit
3968b9d8b5
@ -42,7 +42,7 @@ func TestCmul(t *testing.T) {
|
|||||||
if runtime.GOARCH == "ppc64le" {
|
if runtime.GOARCH == "ppc64le" {
|
||||||
for i := 0; i < 16; i++ {
|
for i := 0; i < 16; i++ {
|
||||||
if fmt.Sprintf("%x", aead.(*gcmAsm).productTable[i*16:(i+1)*16]) != table[i] {
|
if fmt.Sprintf("%x", aead.(*gcmAsm).productTable[i*16:(i+1)*16]) != table[i] {
|
||||||
t.Errorf("productTable %v got %x", i, aead.(*gcmAsm).productTable[i])
|
t.Errorf("productTable %v got %x", i, aead.(*gcmAsm).productTable[i*16:(i+1)*16])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user