gpt4 book ai didi

Contiki 中的 CCM* 测试

转载 作者:行者123 更新时间:2023-11-30 16:47:11 25 4
gpt4 key购买 nike

在不更改任何其他文件的情况下,我尝试运行 ccm-star-tests在 cooja 模拟器中的 z1 微粒上。

对于encryption节点输出为:

Testing verification ... Failure
Testing encryption ... Failure
Testing decryption ... Success

对于verification节点输出为:

Testing AES-128 ... Failure
Testing verification ... Failure

来自here我跟着,

add these lines to your project-conf.h:

#undef AES_128_CONF

#define AES_128_CONF cc2420_aes_128_driver

and this to your C-file:

#include "lib/aes-128.h"

但是没有成功。我错过了什么?

最佳答案

简短的回答是 Cooja 使用 msp430名为 mspsim 的微 Controller 仿真器模拟 CC2420 radio 的操作,以及 mspsim 中模拟的 CC2420 芯片不支持 AES 硬件加速。

这些行表示“使用 cc2420 硬件:

#undef AES_128_CONF
#define AES_128_CONF cc2420_aes_128_driver

删除它们或更改为:

#define AES_128_CONF   aes_128_driver 

这将使用纯软件 AES 实现并且应该可以工作。不过,与支持硬件的版本相比,它会非常慢。

关于Contiki 中的 CCM* 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43423084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com