I caculate MAC in CSEc mocule by CSEC_DRV_GenerateMACAddrMode function as follows,
but it compare with the value that caculated by mbedtls Algorithm library as follows,
the result is diffent, check failed.
we can caculate the mac by other methods? and, we need add 128 bits datas? like this, as follow
and checkking it caculated by CSEC_DRV_GenerateMACAddrMode.
Hello @lyz
Could you provide me the information below from your development environment please?
IDE / Version:
Specific Target:
SDK / RTD Version:
Best Regards!
the problem had been solved, the result is same as.
thanks!
楼主你好,
最近也在使用CSEc模块,在生成和校验MAC的时候发现有字节长度限制,数据长点就会生成和校验失败,完全达不到帖子里的16K大小。能请教下这个长度限制的问题怎么解决的吗?
盼复。
使用这两个接口计算,
一个是4字节4字节取的数据,一个是一字节一字节取的数据。保证字节序一致,两个算出来的MAC值是一样的
问题已经在早些时候解决了,感谢楼主的回复!