Porting from: https://tls.mbed.org/sha-512-source-code. Update and follow sha1/256.c function name and coding style. Change-Id: Idbe70b71e54e0e56a88aac5ec306c75fb2237f4f Signed-off-by: Joseph Chen <chenjh@rock-chips.com>