Skip to content

Commit 71bb1a5

Browse files
authored
Merge pull request #120 from gojimmypi/PR-SHA-Interleave
Add NO_WOLFSSL_SHA256_INTERLEAVE info.
2 parents 2491355 + 12931e9 commit 71bb1a5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ wolfTPM/api/
1010
wolfTPM/wolftpm/
1111
wolfHSM/api
1212
wolfHSM/docs/xml
13+
14+
# Exclude Visual Studio Debris
15+
**/.vs

wolfSSL/src/chapter10.md

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ For **SHA-384**, the functions [`wc_InitSha384()`](group__SHA.md#function-wc_ini
8282
8383
For **SHA-512**, the functions [`wc_InitSha512()`](group__SHA.md#function-wc_initsha512), [`wc_Sha512Update()`](group__SHA.md#function-wc_sha512update), and [`wc_Sha512Final()`](group__SHA.md#function-wc_sha512final) will be used with the structure Sha512.
8484
85+
SHA interleaving (typically only of interest to hardware-acceleration that supports it) is enabled by default, define `NO_WOLFSSL_SHA256_INTERLEAVE` to disable it. Software SHA has always supported interleaving.
86+
8587
### BLAKE2b
8688
8789
To use BLAKE2b (a SHA-3 finalist) include the BLAKE2b header `wolfssl/wolfcrypt/blake2.h`. The structure to use is `Blake2b`, which is a typedef. Before using, the hash initialization must be done with the [`wc_InitBlake2b()`](group__BLAKE2.md#function-wc_initblake2b) call. Use [`wc_Blake2bUpdate()`](group__BLAKE2.md#function-wc_blake2bupdate) to update the hash and [`wc_Blake2bFinal()`](group__BLAKE2.md#function-wc_blake2bfinal) to retrieve the final hash:

0 commit comments

Comments
 (0)