ARM 汇编器中是否有真正紧凑的 DES 实现?
我的引导加载程序限制为 32K 字节,当添加 DES(大约 6384 字节)时,它超出了限制。那么有人知道 ARM 汇编器中尽可能小的 DES 实现吗?
谢谢!
I have a bootloader limited to 32K Bytes, when the DES is added (about 6384 Bytes), it exceeds the limit. So anybody know any DES implementation in ARM assembler as small as possible?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么引导加载程序中需要这个?您想加密/信任您的主要软件吗?
无论如何,一种解决方案可能是添加一个轻量级解压缩器,并压缩引导加载程序代码的一部分,并在运行时解压缩。
向 blob 添加更多软件可能听起来很奇怪,但您应该评估此选项。
在此页面上,他们声称有一个非常小的解压缩器,可容纳 200 字节代码。我猜他们指的是 i386 代码,但无论如何它看起来都很小。
Why do you need this in the bootloader ? You want to crypt/trust your main software ?
Anyway, one solution might be to add a lightweight decompressor, and compress a part of your bootloader code, and uncompress at runtime.
Adding more software to the blob might sound strange, but you should evaluate this option.
On this page, they claim to have a very small decompressor, which fit in 200 bytes of code. I guess they mean i386 code, but it looks quite small anyway.
汇编器不一定会使其更小或更快。您是否尝试过以拇指模式进行编译?您使用的处理器是否支持拇指模式?
Assembler isnt necessarily going to make it smaller or faster. Have you tried compiling in thumb mode? Are you using a processor that supports thumb mode?