mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
documentation typo: wc_InitSha356() sounds like an interesting algorithm but, alas, we will have to settle for wc_InitSha256().
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
_Example_
|
_Example_
|
||||||
\code
|
\code
|
||||||
Sha256 sha256[1];
|
Sha256 sha256[1];
|
||||||
if ((ret = wc_InitSha356(sha256)) != 0) {
|
if ((ret = wc_InitSha256(sha256)) != 0) {
|
||||||
WOLFSSL_MSG("wc_InitSha256 failed");
|
WOLFSSL_MSG("wc_InitSha256 failed");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -76,7 +76,7 @@ WOLFSSL_API int wc_Sha256Update(wc_Sha256*, const byte*, word32);
|
|||||||
byte data[] = { Data to be hashed };
|
byte data[] = { Data to be hashed };
|
||||||
word32 len = sizeof(data);
|
word32 len = sizeof(data);
|
||||||
|
|
||||||
if ((ret = wc_InitSha356(sha256)) != 0) {
|
if ((ret = wc_InitSha256(sha256)) != 0) {
|
||||||
WOLFSSL_MSG("wc_InitSha256 failed");
|
WOLFSSL_MSG("wc_InitSha256 failed");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -137,7 +137,7 @@ WOLFSSL_API void wc_Sha256Free(wc_Sha256*);
|
|||||||
_Example_
|
_Example_
|
||||||
\code
|
\code
|
||||||
Sha256 sha256[1];
|
Sha256 sha256[1];
|
||||||
if ((ret = wc_InitSha356(sha256)) != 0) {
|
if ((ret = wc_InitSha256(sha256)) != 0) {
|
||||||
WOLFSSL_MSG("wc_InitSha256 failed");
|
WOLFSSL_MSG("wc_InitSha256 failed");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user