Skip to content

Commit

Permalink
Fix --enable-devcrypto build error for sys without u_int8_t type
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Nov 11, 2022
1 parent 7887576 commit dc9f46a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wolfcrypt/src/port/devcrypto/README.md
Expand Up @@ -22,7 +22,7 @@ modprobe cryptodev
For default build with all supported features use:

```
./configure --enable-cryptodev
./configure --enable-devcrypto
```

Or for more control over features used:
Expand Down
2 changes: 1 addition & 1 deletion wolfcrypt/src/port/devcrypto/wc_devcrypto.c
Expand Up @@ -122,7 +122,7 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx, int type, byte* key, word32 keySz)
case CRYPTO_SHA2_512_HMAC:
ctx->sess.cipher = 0;
ctx->sess.mac = type;
ctx->sess.mackey = (u_int8_t*)key;
ctx->sess.mackey = (byte*)key;
ctx->sess.mackeylen = keySz;
break;

Expand Down

0 comments on commit dc9f46a

Please sign in to comment.