1 From dc9f46a3be00b5e82684a158605189d1278e324c Mon Sep 17 00:00:00 2001
2 From: Eric Blankenhorn <eric@wolfssl.com>
3 Date: Wed, 12 Oct 2022 16:05:17 -0500
4 Subject: [PATCH] Fix --enable-devcrypto build error for sys without u_int8_t
8 wolfcrypt/src/port/devcrypto/README.md | 2 +-
9 wolfcrypt/src/port/devcrypto/wc_devcrypto.c | 2 +-
10 2 files changed, 2 insertions(+), 2 deletions(-)
12 --- a/wolfcrypt/src/port/devcrypto/README.md
13 +++ b/wolfcrypt/src/port/devcrypto/README.md
14 @@ -22,7 +22,7 @@ modprobe cryptodev
15 For default build with all supported features use:
18 -./configure --enable-cryptodev
19 +./configure --enable-devcrypto
22 Or for more control over features used:
23 --- a/wolfcrypt/src/port/devcrypto/wc_devcrypto.c
24 +++ b/wolfcrypt/src/port/devcrypto/wc_devcrypto.c
25 @@ -122,7 +122,7 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx
26 case CRYPTO_SHA2_512_HMAC:
29 - ctx->sess.mackey = (u_int8_t*)key;
30 + ctx->sess.mackey = (byte*)key;
31 ctx->sess.mackeylen = keySz;