mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +02:00
Fix valgrind issue with memcpy
This commit is contained in:
@ -8410,7 +8410,7 @@ int wc_AesGcmInit(Aes* aes, const byte* key, word32 len, const byte* iv,
|
|||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
/* Set the IV passed in if it is smaller than a block. */
|
/* Set the IV passed in if it is smaller than a block. */
|
||||||
if ((iv != NULL) && (ivSz <= AES_BLOCK_SIZE)) {
|
if ((iv != NULL) && (ivSz <= AES_BLOCK_SIZE)) {
|
||||||
XMEMCPY((byte*)aes->reg, iv, ivSz);
|
XMEMMOVE((byte*)aes->reg, iv, ivSz);
|
||||||
aes->nonceSz = ivSz;
|
aes->nonceSz = ivSz;
|
||||||
}
|
}
|
||||||
/* No IV passed in, check for cached IV. */
|
/* No IV passed in, check for cached IV. */
|
||||||
|
Reference in New Issue
Block a user