Skip to content

Commit

Permalink
Merge pull request #65 from bigbrett/wolfBoot-integration-fixes
Browse files Browse the repository at this point in the history
fix cryptoCb cipher macro
  • Loading branch information
jpbland1 authored Aug 13, 2024
2 parents b1218c0 + c3e22c4 commit fc9b2f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
Build/
*.o
*.a
*.la

4 changes: 2 additions & 2 deletions src/wh_client_cryptocb.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ int wh_Client_CryptoCb(int devId, wc_CryptoInfo* info, void* inCtx)
/* Based on the info type, process the request */
switch (info->algo_type)
{
#ifndef NO_AES
case WC_ALGO_TYPE_CIPHER:
/* Set shared cipher request members */
packet->cipherAnyReq.type = info->cipher.type;
packet->cipherAnyReq.enc = info->cipher.enc;

switch (info->cipher.type)
{
#ifndef NO_AES
#ifdef HAVE_AES_CBC
case WC_CIPHER_AES_CBC:
{
Expand Down Expand Up @@ -288,13 +288,13 @@ int wh_Client_CryptoCb(int devId, wc_CryptoInfo* info, void* inCtx)
}
} break;
#endif /* HAVE_AESGCM */
#endif /* !NO_AES */

default:
ret = CRYPTOCB_UNAVAILABLE;
break;
}
break;
#endif /* !NO_AES */

case WC_ALGO_TYPE_PK:
/* set type */
Expand Down

0 comments on commit fc9b2f9

Please sign in to comment.