Fix --enable-devcrypto build error for sys without u_int8_t type

This commit is contained in:
Eric Blankenhorn
2022-10-12 16:05:17 -05:00
parent 7887576032
commit dc9f46a3be
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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;