SHA256

Off topic discussions that do not fit into any of the above can go here. Please keep it clean and respectful.
Post Reply
User avatar
otitov
XCore Addict
Posts: 207
Joined: Thu Dec 10, 2009 11:00 pm
Location: Mexico
Contact:

SHA256

Post by otitov »

Do we have any SHA256 implementation for XMOS?


User avatar
phalt
Respected Member
Posts: 298
Joined: Thu May 12, 2011 11:14 am
Contact:

Post by phalt »

We have an SHA2 hidden in the sc_crypto project on the XCore Github:

https://github.com/xcore/sc_crypto
User avatar
otitov
XCore Addict
Posts: 207
Joined: Thu Dec 10, 2009 11:00 pm
Location: Mexico
Contact:

Post by otitov »

Sounds great!

Do we have any performance estimates for this implementation?
User avatar
otitov
XCore Addict
Posts: 207
Joined: Thu Dec 10, 2009 11:00 pm
Location: Mexico
Contact:

Post 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!
User avatar
phalt
Respected Member
Posts: 298
Joined: Thu May 12, 2011 11:14 am
Contact:

Post by phalt »

I'll forward this onto the person who created it here at XMOS, they're the most likely to solve your problem.
User avatar
otitov
XCore Addict
Posts: 207
Joined: Thu Dec 10, 2009 11:00 pm
Location: Mexico
Contact:

Post by otitov »

Thanks!
Post Reply