OpenCores
no use no use 1/1 no use no use
SHA CORE
by kaarthic87 on Aug 21, 2010
kaarthic87
Posts: 1
Joined: Sep 18, 2009
Last seen: Aug 21, 2010
Can anyone explain how to make the sha code work for any other input text other than the default one which is "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"

I am getting the correct digest for this input alone.

If I change the input to "abc" and the Padding bits(1bit with 1, 871 bits as 0's and 128 bit representation of the length 24) accordingly. I dont get the correct digest.

Someone throw some light on this issue

test_sha512.v (7 kb)
no use no use 1/1 no use no use
© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.