-
-
Save azhuox/51ecf38205b7cc52d05a2f31d13818cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func newCipher(key []byte) (cipher.Block, error) { | |
if !supportsAES { | |
return newCipherGeneric(key) | |
} | |
n := len(key) + 28 | |
c := aesCipherAsm{aesCipher{make([]uint32, n), make([]uint32, n)}} | |
... | |
if supportsAES && supportsGFMUL { | |
return &aesCipherGCM{c}, nil | |
} | |
return &c, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment