Topic: 64MB limit with ctaocrypt SHA* functions ?


I'm experiencing a weird problem getting bad SHA digests on file larger than 64MB

The attached (small) sample code basically do a Init, Update loop and Finalize over a file.

Everything is running fine (aka, digests are ok) till checked file is larger than 64MB.

Behavior occurs at least with SHA1, SHA256, both on windows and linux, using wolfssl 2.0.8 embedded ssl.

Did I missed something?

Thanks a lot,


Post's attachments

shatest.c 1.1 kb, 3 downloads since 2012-03-02 

You don't have the permssions to download the attachments of this post.

Re: 64MB limit with ctaocrypt SHA* functions ?

Hi Stéphane,

Thanks for the report.  There was a bug where the hiLen in bits was using the already shifted value of loLen.  I checked in a patch on our github tree.  Thanks again for the report.