Patch taken from the Debian package for python-axolotl-0.1.39. See . Description: Removes IV paramenter from AES constructor, since it is not necessary for ctr mode. Author: Josue Ortega Last-Update: 2017-04-13 --- a/axolotl/sessioncipher.py +++ b/axolotl/sessioncipher.py @@ -228,13 +228,7 @@ # counterint = struct.unpack(">L", counterbytes)[0] # counterint = int.from_bytes(counterbytes, byteorder='big') ctr = Counter.new(128, initial_value=counter) - - # cipher = AES.new(key, AES.MODE_CTR, counter=ctr) - ivBytes = bytearray(16) - ByteUtil.intToByteArray(ivBytes, 0, counter) - - cipher = AES.new(key, AES.MODE_CTR, IV=bytes(ivBytes), counter=ctr) - + cipher = AES.new(key, AES.MODE_CTR, counter=ctr) return cipher type='submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
n title='2019-05-07 12:18:44 +0200'>2019-05-07
AgeCommit message (Expand)Author
uuid: 'fat-uuid->string' preserves leading zeros....Fixes <https://bugs.gnu.org/35582>. Reported by sirgazil <sirgazil@zoho.com>. Previously, leading zeros would be removed, leading to an "invalid" UUID: (uuid->string (uuid "00CA-050E" 'fat32)) ⇒ "CA-50E" (string->uuid "CA-50E" 'fat32) ⇒ #f * gnu/system/uuid.scm (fat-uuid->string): Pad digits with zeros. * tests/uuid.scm ("uuid, FAT32, leading zeros preserved"): New test. Ludovic Courtès