gpt4 book ai didi

c - 嵌入式系统中的aes ctr 128位解密

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

作为 DFU(设备固件升级)的一部分,我们需要解密来自 PC 的二进制文件。解密算法应为 AES CTR 128 位解密。由于芯片(TI DM3732)不支持硬件解密,需要实现软件解密。我看到有许多库可用于调用“AES_encrypt”API,但我无法将其集成到我的代码库中。谁能帮助我如何继续?

最佳答案

注意:作为答案发布,因为作为评论发布太长。

<小时/>

不想听起来太消极,我认为最好的答案是,如果您无法将可靠的加密库集成到您的代码库中,那么您只需要找到可以的人。

原因如下:编写像样的加密软件并不容易。如果您浏览 SO 和其他网站,您可能会找到可以实现您想要的功能的代码。 但是,除非该软件经过彻底的同行评审和压力测试,否则它很可能容易受到各种 side-channel attacks 的攻击。 。它甚至可能存在错误,导致其在某些情况下无法正常运行。

我们似乎正在进入一个时代,即使是像kettles这样的普通物体也一样。甚至 toilets可以连接到互联网。而且由于制造商在安全方面一直在偷工减料,因此这些设备很容易被盗用。结果,我们开始看到大量的botnet attacks源自“智能”家居设备。

Bruce Schneier 在 speech to the House of Representatives’ Energy & Commerce Committee 中阐明了危险。就在上周:

Everything is now a computer: This is not a phone. It’s a computer that makes phone calls. A refrigerator is a computer that keeps things cold. An ATM machine is a computer with money inside. Your car is not a mechanical device with a computer. It’s a computer with four wheels and an engine… And this is the Internet of Things, and this is what caused the DDoS attack we’re talking about.

关于c - 嵌入式系统中的aes ctr 128位解密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40784973/

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