borg/src/borg/crypto
Thomas Waldmann 21d4407170
always implicitly require manifest TAMs
remove a lot of complexity from the code that was just there to
support legacy borg versions < 1.0.9 which did not TAM authenticate
the manifest.

since then, borg writes TAM authentication to the manifest,
even if the repo is unencrypted.
if the repo is unencrypted, it did not check the somehow pointless
authentication that was generated without any secret, but
if we add that fake TAM, we can also verify the fake TAM.

if somebody explicitly switches off all crypto, they can not
expect authentication.

for everybody else, borg now always generates the TAM and also
verifies it.
2023-09-03 22:01:46 +02:00
..
__init__.py create crypto package with key, keymanager, low_level 2017-05-02 20:49:27 +02:00
file_integrity.py cleaner FileLikeWrapper with own __init__ 2023-01-30 15:54:56 +01:00
key.py always implicitly require manifest TAMs 2023-09-03 22:01:46 +02:00
keymanager.py fix F401 2023-07-26 01:23:37 +02:00
low_level.pyx low_level crypto: fix borg version in comments 2023-05-11 20:10:55 +02:00