mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #4869 from wolfSSL/silabs-aes
SILABS port: fix sizeof
This commit is contained in:
@ -48,7 +48,7 @@ int wc_AesSetKey(Aes* aes, const byte* userKey, word32 keylen,
|
|||||||
return BUFFER_E;
|
return BUFFER_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
XMEMSET(aes, 0, sizeof(aes));
|
XMEMSET(aes, 0, sizeof(*aes));
|
||||||
|
|
||||||
if (keylen > sizeof(aes->key)) {
|
if (keylen > sizeof(aes->key)) {
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
Reference in New Issue
Block a user