开发者

Are there any really compact DES implementation in ARM assembler?

开发者 https://www.devze.com 2022-12-19 19:07 出处:网络
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?

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

精彩评论

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