This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SHA-1 for 8051

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

Parents
  • 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.

Reply
  • 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.

Children
No data