Nov 24, 2022
10:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2022
10:32 PM
目前项目使用中需要用到AES128-CMAC,目前测试发现可以在M4中正常运行,M0运行失败。参考了官方的例程进行测试的,目前的例程客户端只能在M4中实现,
现在的需求是:CRYPT0 模块需要在M0和M4上正常运行,能进行加解密。
请教一下应该如何操作?有没有文档说明?
希望能得到回复,谢谢
Solved! Go to Solution.
1 Solution
Attachments are accessible only for community members.
Nov 24, 2022
11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2022
11:13 PM
你好,
可以参考SDL中crpyto的readme文档说明,把CM4中执行的crypto操作搬到CM0就可以。
我测了一下,和CM4的效果相同。
不知道您说的CM0运行失败是什么意思?
您可以参考附件的代码测试一下。
3 Replies
Attachments are accessible only for community members.
Nov 24, 2022
11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2022
11:13 PM
Nov 24, 2022
11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2022
11:46 PM
你好,我调试的结果如图所示,加密之后的数据全是0,导致程序直接跑死在这里
Nov 25, 2022
12:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 25, 2022
12:17 AM
你好,
解决了,测试失败是由于M0中的cy_stc_crypto_context_t cryptoCtx;这个变量初始化和使用时不一样导致的