Page 1 of 1

SHA256

Posted: Fri Aug 26, 2011 5:31 am
by otitov
Do we have any SHA256 implementation for XMOS?

Re: SHA256

Posted: Fri Aug 26, 2011 9:51 am
by phalt
We have an SHA2 hidden in the sc_crypto project on the XCore Github:

https://github.com/xcore/sc_crypto

Re: SHA256

Posted: Fri Aug 26, 2011 4:30 pm
by otitov
Sounds great!

Do we have any performance estimates for this implementation?

Re: SHA256

Posted: Fri Sep 02, 2011 12:45 am
by otitov
Got it running!

Also got some problems - I do not understand the use of

Code: Select all

message[55] = 0x80;
in https://github.com/xcore/sc_crypto/blob ... rc/main.xc

I feel I missed something in the middle, The SHA256 hash for test message (including this modification with 0x80) is correct, while I am trying to test with other test vectors I am getting result far beyond expected hash.

Any comments quite appreciated!

Re: SHA256

Posted: Fri Sep 02, 2011 9:32 am
by phalt
I'll forward this onto the person who created it here at XMOS, they're the most likely to solve your problem.

Re: SHA256

Posted: Fri Sep 02, 2011 4:03 pm
by otitov
Thanks!