Update rres

This commit is contained in:
Milan Nikolic 2023-11-12 12:21:11 +01:00
parent 3c5dec7f24
commit f492eb5f2b
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
3 changed files with 32 additions and 21 deletions

View file

@ -566,8 +566,8 @@ int UnpackResourceChunk(rresResourceChunk *chunk)
.nb_lanes = 1 // Single-threaded
};
crypto_argon2_inputs inputs = {
.pass = (const uint8_t *)rresGetCipherPassword(), // User password
.pass_size = 16, // Password length
.pass = (const uint8_t *)rresGetCipherPassword(), // User password
.pass_size = strlen(rresGetCipherPassword()), // Password length
.salt = salt, // Salt for the password
.salt_size = 16
};
@ -641,8 +641,8 @@ int UnpackResourceChunk(rresResourceChunk *chunk)
.nb_lanes = 1 // Single-threaded
};
crypto_argon2_inputs inputs = {
.pass = (const uint8_t *)rresGetCipherPassword(), // User password
.pass_size = 16, // Password length
.pass = (const uint8_t *)rresGetCipherPassword(), // User password
.pass_size = strlen(rresGetCipherPassword()), // Password length
.salt = salt, // Salt for the password
.salt_size = 16
};