diff --git a/src/borg/crypto/key.py b/src/borg/crypto/key.py index 0a634ba23..25cff0a8c 100644 --- a/src/borg/crypto/key.py +++ b/src/borg/crypto/key.py @@ -305,6 +305,8 @@ class KeyBase: unpacker = get_limited_unpacker('archive') unpacker.feed(data) unpacked = unpacker.unpack() + if AUTHENTICATED_NO_KEY: + return unpacked, True, None # True is a lie. if b'tam' not in unpacked: if tam_required: archive_name = unpacked.get(b'name', b'').decode('ascii', 'replace')