From be59c8173c06cf997b3f05f356ea346eab189623 Mon Sep 17 00:00:00 2001 From: BeradiaN Date: Thu, 25 Aug 2016 16:41:40 +0200 Subject: [PATCH] Update sha256_test.c Added printing Test with 1 call function directly. --- sha256_test.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sha256_test.c b/sha256_test.c index 726a668..cf13daf 100644 --- a/sha256_test.c +++ b/sha256_test.c @@ -53,9 +53,26 @@ int sha256_test() return(pass); } +void PrintHash_test() +{ + BYTE text[] = {"Test"}; + BYTE hash[SHA256_BLOCK_SIZE]; + + sha256(hash,text,strlen(text)); + + printf("Hash Sha-256\n\n"); + for(int z=0;z