bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An encryption patch to ensure there are no zero's in data CRC


From: Craig Mason-Jones
Subject: An encryption patch to ensure there are no zero's in data CRC
Date: Sun, 3 Sep 2023 18:37:25 +0200
User-agent: Mozilla Thunderbird

Hi,

This patch removes any zero bytes from the CRC that is calculated for a data checksum.

I remove them when the CRC is calculated for encryption, and then remove them too from the calculated CRC for decryption. I don't know whether it's impossible for a CRC to contain a zero, but since we're using strlen on the encrypted data, if there were a zero in the CRC, the decryption would fail.

Best,

Craig

Attachment: recutils-no-zeros-in-crc.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]