Skip to content

Commit

Permalink
sm4: ppc64x expand key fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Sep 10, 2024
1 parent 0333280 commit 8cd7748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sm4/sm4_ppc64x_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestExpandKey(t *testing.T) {
}
io.ReadFull(rand.Reader, key)
expandKeyGo(key, &encRes1, &decRes1)
expandKey(key, encRes2, decRes2)
expandKeyAsm(&key[0], &ck[0], &encRes2[0], &decRes2[0], INST_AES)

Check failure on line 36 in sm4/sm4_ppc64x_test.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ppc64le, power8)

undefined: INST_AES
if !reflect.DeepEqual(encRes1[:], encRes2) {
t.Errorf("expected=%x, result=%x\n", encRes1[:], encRes2)
}
Expand Down

0 comments on commit 8cd7748

Please sign in to comment.