mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
bypass gcm asm first
This commit is contained in:
parent
fa0206e30a
commit
0e13bac951
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user