From 0e13bac9511722ddeadefae51f72fd95632f1fdc Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 31 Dec 2021 10:48:34 +0800 Subject: [PATCH] bypass gcm asm first --- 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 d6613fc..2772bcf 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 }