In golangs AES crypto package cipher_amd64.go makes use of functions that are defined in assembler code (asm_amd64.s). In the mentioned go file only the function headers are defined:
// defined in asm_amd64.s
func encryptBlockAsm(nr int, xk *uint32, dst, src *byte)
func decryptBlockAsm(nr int, xk *uint32, dst, src *byte)
func expandKeyAsm(nr int, key *byte, enc *uint32, dec *uint32)
How can I use these functions in my own code? Just declaring the headers and importing "crypto/aes" as in the mentioned .go file does not work (undefined: expandKeyAsm
).
Thank you very much!