canmv-k230 aes例程报错

Viewed 56

重现步骤

使用AES的测试例程,在初始化aes的时候报错,参数太多,只能传三个参数,实际传了四个参数。

期待结果和实际结果

aes例程能够正常运行,例程地址:https://developer.canaan-creative.com/k230_canmv/zh/main/zh/example/peripheral/aes.html

软硬件版本信息

Canmv K230 01studio板子, micropython v1.2.2
图片.png

错误日志

错误行:crypto = ucryptolib.aes(aes[0].key, 0, aes[0].iv, aes[0].aad)
错误信息:TypeError: function expected at most 3 arguments, got 4

尝试解决过程

补充材料

图片.png

1 Answers