This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: Counting sha2 of 400K

Part Number: CC1310

Hello,

I have an external flash with 400K I need to count the sha2.

Is it possible to count sha2 without copying it to the internal memory?

by providing it with chunks of bytes each time

Vitaly

  • The rom_crypto implementation should be able to handle this on CC1310.

    1. SHA256_initialize()
    2. SHA256_execute() until you have gone over all 400k in the flash
    3. SHA256_output() to get the resultant hash

    In step 2, the input can be chunked such that only a small fraction needs to be present in RAM during each invocation. I do not know what the limitations of these chunks are in terms of size. I would try feeding in multiplies of the SHA256 block size (64 bytes).