Other Parts Discussed in Thread: SHA-256
I could be doing something wrong, but if I feed the same data into the TM4C SHA/MD5 peripheral and another reference SHA-256 implementation such as openssl, the results are different.
If I create a text file containing "Now is the time for all good men to come to the aid of their country.\n" and feed it to "openssl sha256 -binary test.txt > test.sha256" then the result is:
00000000 f0 b4 34 ec 0e d6 18 4f c8 84 4c 7f e4 da bd cc |..4....O..L.....|
00000010 9f 66 76 bc a1 3f 18 87 79 24 f7 a3 00 6c 1e 8e |.fv..?..y$...l..|
But that same data fed to the SHA-256 mode peripheral in the TM4C results in:
SHA2: 34F85BD52F2FFDC96E6F2CA5255A30C3E46214C923B3222F94D8DAC695C64791
Is there something about openssl sha256 digests that are different from raw SHA-256 computations? Is it just a coincidence that a SHA256 Hash Calculator produces the same result as openssl? Is it possible that I am printing out the SHA Results incorrectly? (I'm printing one byte at a time, in hex, rather than one word at a time)