0003-python3-struct-unpack-C-strings-into-Python-bytes-31.patch
src/authentic2/crypto.py | ||
---|---|---|
133 | 133 |
magic, mode, count = struct.unpack('<2sBH', raw[:5]) |
134 | 134 |
except struct.error as e: |
135 | 135 |
raise DecryptionError('invalid packing', e) |
136 |
if magic != 'a2': |
|
136 |
if magic != b'a2':
|
|
137 | 137 |
raise DecryptionError('invalid magic string', magic) |
138 | 138 |
if mode != 1: |
139 | 139 |
raise DecryptionError('mode is not AES128-SHA256', mode) |
140 |
- |