You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This call to memcpy causes keyInt to be reduced and produces an incorrect decryption as described in #8.
Replaced the call to memcpy with a loop
cryptint_t *keyIntPtr = &keyInt; for (uint8_t i = 0; i < sizeof(keyInt); i++) keyIntPtr[i] = keyBytes[i];
This solves the specific issue in #8 but since there are multiple calls to memcpy within the code it would be good to know specifically what is happening. Tested with memmove to make sure it wasn't overlapping memory, and that wasn't the issue ither.
The text was updated successfully, but these errors were encountered:
yaxa/crypt.c
Line 409 in cc5a22e
This call to memcpy causes keyInt to be reduced and produces an incorrect decryption as described in #8.
Replaced the call to memcpy with a loop
cryptint_t *keyIntPtr = &keyInt; for (uint8_t i = 0; i < sizeof(keyInt); i++) keyIntPtr[i] = keyBytes[i];
This solves the specific issue in #8 but since there are multiple calls to memcpy within the code it would be good to know specifically what is happening. Tested with memmove to make sure it wasn't overlapping memory, and that wasn't the issue ither.
The text was updated successfully, but these errors were encountered: