mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
aes_crypt_cbc always returns zero so ignore its return value.
This commit is contained in:
parent
519123966a
commit
4314970b0d
10
stream.c
10
stream.c
|
|
@ -1176,9 +1176,8 @@ retry:
|
|||
if (encrypt_pad)
|
||||
get_rand(cti->s_buf + cti->c_len, encrypt_pad);
|
||||
print_maxverbose("Encrypting block \n");
|
||||
if (unlikely(aes_crypt_cbc(&control->aes_ctx, AES_ENCRYPT,
|
||||
padded_len, control->hash_iv, cti->s_buf, cti->s_buf)))
|
||||
failure("Failed to aes_crypt_cbc in compthread\n");
|
||||
aes_crypt_cbc(&control->aes_ctx, AES_ENCRYPT, padded_len,
|
||||
control->hash_iv, cti->s_buf, cti->s_buf);
|
||||
} else
|
||||
padded_len = cti->c_len;
|
||||
|
||||
|
|
@ -1436,9 +1435,8 @@ fill_another:
|
|||
|
||||
if (ENCRYPT) {
|
||||
print_maxverbose("Decrypting block \n");
|
||||
if (unlikely(aes_crypt_cbc(&control->aes_ctx, AES_DECRYPT,
|
||||
padded_len, control->hash_iv, s_buf, s_buf)))
|
||||
failure("Failed to aes_crypt_cbc in fill_buffer\n");
|
||||
aes_crypt_cbc(&control->aes_ctx, AES_DECRYPT, padded_len,
|
||||
control->hash_iv, s_buf, s_buf);
|
||||
}
|
||||
|
||||
ucthread[s->uthread_no].s_buf = s_buf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue