forked from wolfSSL/wolfssl
Fix --enable-devcrypto build error for sys without u_int8_t type
This commit is contained in:
@ -22,7 +22,7 @@ modprobe cryptodev
|
|||||||
For default build with all supported features use:
|
For default build with all supported features use:
|
||||||
|
|
||||||
```
|
```
|
||||||
./configure --enable-cryptodev
|
./configure --enable-devcrypto
|
||||||
```
|
```
|
||||||
|
|
||||||
Or for more control over features used:
|
Or for more control over features used:
|
||||||
|
@ -122,7 +122,7 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx, int type, byte* key, word32 keySz)
|
|||||||
case CRYPTO_SHA2_512_HMAC:
|
case CRYPTO_SHA2_512_HMAC:
|
||||||
ctx->sess.cipher = 0;
|
ctx->sess.cipher = 0;
|
||||||
ctx->sess.mac = type;
|
ctx->sess.mac = type;
|
||||||
ctx->sess.mackey = (u_int8_t*)key;
|
ctx->sess.mackey = (byte*)key;
|
||||||
ctx->sess.mackeylen = keySz;
|
ctx->sess.mackeylen = keySz;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user