From 9f21693deee383a77ceb76db5f5b31dfc4d2dddd Mon Sep 17 00:00:00 2001 From: emmansun Date: Sat, 1 Jan 2022 22:03:49 +0800 Subject: [PATCH] gcm arm64 next --- sm4/cipher_asm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sm4/cipher_asm.go b/sm4/cipher_asm.go index 4c68ba9..b8c7945 100644 --- a/sm4/cipher_asm.go +++ b/sm4/cipher_asm.go @@ -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 }