开发者

Are there any really compact DES implementation in ARM assembler?

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 A开发者_运维百科RM assembler as small as possible?

thanks!


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜