aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorleongross <[email protected]>2024-04-23 15:55:06 +0200
committerRon Evans <[email protected]>2024-05-14 20:44:48 +0200
commit30c4df16f27afa66e561f82914f0fee1acce7b9e (patch)
treea03207ded426b7469827b9f3c9d0992c41869b85
parentfe27b674cdacd1ad78a2412013844f13eb1b3b15 (diff)
downloadtinygo-30c4df16f27afa66e561f82914f0fee1acce7b9e.tar.gz
tinygo-30c4df16f27afa66e561f82914f0fee1acce7b9e.zip
add aes generic aliases
-rw-r--r--compiler/alias.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/alias.go b/compiler/alias.go
index 9490d84d9..b0191a7a1 100644
--- a/compiler/alias.go
+++ b/compiler/alias.go
@@ -24,6 +24,10 @@ var stdlibAliases = map[string]string{
"crypto/sha256.block": "crypto/sha256.blockGeneric",
"crypto/sha512.blockAMD64": "crypto/sha512.blockGeneric",
+ // AES
+ "crypto/aes.decryptBlockAsm": "crypto/aes.decryptBlock",
+ "crypto/aes.encryptBlockAsm": "crypto/aes.encryptBlock",
+
// math package
"math.archHypot": "math.hypot",
"math.archMax": "math.max",