contiki 中的 CCM* 测试
CCM* test in contiki
在不更改任何其他文件的情况下,我正在尝试 运行 ccm-star-tests 在 cooja 模拟器中的 z1 motes 上。
对于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 使用名为 mspsim
的 msp430
微控制器仿真器来仿真 CC2420 无线电的操作,而 mspsim
中仿真的 CC2420 芯片不支持用于 AES 硬件加速。
这些行说“使用 cc2420 硬件:
#undef AES_128_CONF
#define AES_128_CONF cc2420_aes_128_driver
删除它们或更改为:
#define AES_128_CONF aes_128_driver
这将使用纯软件 AES 实现并且应该可以工作。与启用硬件的版本相比,它会 非常 慢。
在不更改任何其他文件的情况下,我正在尝试 运行 ccm-star-tests 在 cooja 模拟器中的 z1 motes 上。
对于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 使用名为 mspsim
的 msp430
微控制器仿真器来仿真 CC2420 无线电的操作,而 mspsim
中仿真的 CC2420 芯片不支持用于 AES 硬件加速。
这些行说“使用 cc2420 硬件:
#undef AES_128_CONF
#define AES_128_CONF cc2420_aes_128_driver
删除它们或更改为:
#define AES_128_CONF aes_128_driver
这将使用纯软件 AES 实现并且应该可以工作。与启用硬件的版本相比,它会 非常 慢。