"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/crypto_backend/argon2/argon2.c" between
cryptsetup-2.0.6.tar.xz and cryptsetup-2.1.0.tar.xz

About: cryptsetup is a utility used to conveniently setup disk encryption based on the dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format.

argon2.c  (cryptsetup-2.0.6.tar.xz):argon2.c  (cryptsetup-2.1.0.tar.xz)
skipping to change at line 277 skipping to change at line 277
if (encoded == NULL) { if (encoded == NULL) {
return ARGON2_DECODING_FAIL; return ARGON2_DECODING_FAIL;
} }
encoded_len = strlen(encoded); encoded_len = strlen(encoded);
if (encoded_len > UINT32_MAX) { if (encoded_len > UINT32_MAX) {
return ARGON2_DECODING_FAIL; return ARGON2_DECODING_FAIL;
} }
/* No field can be longer than the encoded length */ /* No field can be longer than the encoded length */
/* coverity[strlen_assign] */
max_field_len = (uint32_t)encoded_len; max_field_len = (uint32_t)encoded_len;
ctx.saltlen = max_field_len; ctx.saltlen = max_field_len;
ctx.outlen = max_field_len; ctx.outlen = max_field_len;
ctx.salt = malloc(ctx.saltlen); ctx.salt = malloc(ctx.saltlen);
ctx.out = malloc(ctx.outlen); ctx.out = malloc(ctx.outlen);
if (!ctx.salt || !ctx.out) { if (!ctx.salt || !ctx.out) {
ret = ARGON2_MEMORY_ALLOCATION_ERROR; ret = ARGON2_MEMORY_ALLOCATION_ERROR;
goto fail; goto fail;
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)