mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
sm4: ppc64x expand key fix 2
This commit is contained in:
parent
8cd7748b00
commit
82efc4b40f
@ -33,7 +33,7 @@ func TestExpandKey(t *testing.T) {
|
||||
}
|
||||
io.ReadFull(rand.Reader, key)
|
||||
expandKeyGo(key, &encRes1, &decRes1)
|
||||
expandKeyAsm(&key[0], &ck[0], &encRes2[0], &decRes2[0], INST_AES)
|
||||
expandKeyAsm(&key[0], &ck[0], &encRes2[0], &decRes2[0], 0)
|
||||
if !reflect.DeepEqual(encRes1[:], encRes2) {
|
||||
t.Errorf("expected=%x, result=%x\n", encRes1[:], encRes2)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user