Hi
Does anyone know if there's an efficient implementation of SHA-1 for the 8051? Preferably one that *doesn't* need stdint.h.
Thanks
It's because that it may eventually be ported to IAR, but using IAR's CLIB and not DLIB.
That doesn't explain it at all. If you don't want to include it, you could just as easily roll your own.
A sha-1 implementation that includes <stdint.h> will not require much magic from that file. So it's not many minutes to supply the corresponding information yourself if you use a compiler that doesn't have stdint.h.
Focus on algorithms that works with small integer sizes, and don't worry if <stdint.h> is used or not. And hope for an algorithm that avoids too much pointer indirections - especially pointer-indirections with additional offset.
The 8051 will have to suffer for 16-bit and suffer extremely for 32-bit integers. And it has poor pointer support, so *(p+10) or p1[*p2++] means extra work.