Skip to content

Commit

Permalink
Update chapter06.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett authored Mar 18, 2024
1 parent 5a64bf8 commit 0557a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfSSL/src/chapter06.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ WOLFSSL_API int wc_CryptoCb_RegisterDevice(int devId,

#### 3. Pass the `devId` as an argument to a wolfCrypt API function

For wolfCrypt API’s use the init functions that accept devId such as:
For wolfCrypt API’s use the init functions that accept `devId` such as:
```
wc_InitRsaKey_ex
wc_ecc_init_ex
Expand All @@ -234,7 +234,7 @@ wc_InitCmac_ex
This is not an exhaustive list. Please refer to the wolfCrypt API documentation to see if a particular algorithm supports crypto callbacks.

#### 4. (TLS only): associate the devId with your WOLFSSL context
To enable use of a crypto callback when using TLS, you must supply the devId arguments on initialization of a `WOLFSSL_CTX` or `WOLFSSL` struct.
To enable use of a crypto callback when using TLS, you must supply the `devId` arguments on initialization of a `WOLFSSL_CTX` or `WOLFSSL` struct.
```
wolfSSL_CTX_SetDevId(ctx, devId);
wolfSSL_SetDevId(ssl, devId);
Expand Down

0 comments on commit 0557a04

Please sign in to comment.