gcm arm64 next

This commit is contained in:
emmansun 2022-01-01 22:03:49 +08:00
parent 34ac1d6681
commit 9f21693dee

View File

@ -33,9 +33,9 @@ func newCipher(key []byte) (cipher.Block, error) {
}
c := sm4CipherAsm{sm4Cipher{make([]uint32, rounds), make([]uint32, rounds)}}
expandKeyAsm(&key[0], &ck[0], &c.enc[0], &c.dec[0])
if supportsAES && supportsGFMUL {
return &sm4CipherGCM{c}, nil
}
//if supportsAES && supportsGFMUL {
// return &sm4CipherGCM{c}, nil
//}
return &c, nil
}