[riot-devel] sha256

Francisco Javier Acosta Padilla francisco.acosta at inria.fr
Fri Dec 16 18:47:19 CET 2016


Hi RIOTers!

I’m trying the sha256 module on RIOT master and I just realised it returns always a different value… for now, I’m doing this:


sha256_init(&sha256);
sha256_update(&sha256, (uint8_t*)firmware_bin, firmware_size);
sha256_final(&sha256, metadata.hash);

To initialise and store the hash, according to the unittest which does very similar.

Am I doing something wrong?

Thanks in advance!

Cheers,

-- 
Francisco Javier Acosta Padilla
Research Engineer at INRIA Saclay
INFINE Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20161216/013c842b/attachment.html>


More information about the devel mailing list