【已解决】使用aes128_ecb_encode接口该如何配置填充类型为none?

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
15158693303
Posts: 36

使用aes128_ecb_encode接口该如何配置填充类型为none?
新年好,我将字符串"l8hpkkjnn93mx0pe",key为"6r4mq0ptoan2wf70"使用aes128_ecb_encode接口加密后得到密文:"b4046667e3c549673aa75369b605f342a69022a5ba45bc1c579440376f67f09d",不是32位的密文,我使用上位机加密后的密文为:"B4046667E3C549673AA75369B605F342",猜想应该是填充类型的问题,请问在涂鸦os里如何配置填充类型为none?

Last edited by 15158693303 on 2024年 Feb 18日 16:25, edited 1 time in total.
一线长天
Posts: 52

Re: 使用aes128_ecb_encode接口该如何配置填充类型为none?

可以使用aes128_ecb_encode_raw这个接口,请注意该接口仍然要求16字节对齐(AES 128)。

15158693303
Posts: 36

Re: 使用aes128_ecb_encode接口该如何配置填充类型为none?

非常感谢,已经可以了.

Post Reply