From 2a2ba896eca549a413618ee61ddf1d3a1db99947 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 19 Nov 2020 13:38:14 -0600 Subject: [PATCH] documentation typo: wc_InitSha356() sounds like an interesting algorithm but, alas, we will have to settle for wc_InitSha256(). --- doc/dox_comments/header_files/sha256.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/dox_comments/header_files/sha256.h b/doc/dox_comments/header_files/sha256.h index 8c667ca9b..978b40f5c 100644 --- a/doc/dox_comments/header_files/sha256.h +++ b/doc/dox_comments/header_files/sha256.h @@ -11,7 +11,7 @@ _Example_ \code Sha256 sha256[1]; - if ((ret = wc_InitSha356(sha256)) != 0) { + if ((ret = wc_InitSha256(sha256)) != 0) { WOLFSSL_MSG("wc_InitSha256 failed"); } else { @@ -76,7 +76,7 @@ WOLFSSL_API int wc_Sha256Update(wc_Sha256*, const byte*, word32); byte data[] = { Data to be hashed }; word32 len = sizeof(data); - if ((ret = wc_InitSha356(sha256)) != 0) { + if ((ret = wc_InitSha256(sha256)) != 0) { WOLFSSL_MSG("wc_InitSha256 failed"); } else { @@ -137,7 +137,7 @@ WOLFSSL_API void wc_Sha256Free(wc_Sha256*); _Example_ \code Sha256 sha256[1]; - if ((ret = wc_InitSha356(sha256)) != 0) { + if ((ret = wc_InitSha256(sha256)) != 0) { WOLFSSL_MSG("wc_InitSha256 failed"); } else {