From 6178061e1b062972612bbc231e20db8a73a5673b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 24 Mar 2017 12:20:45 +0100 Subject: [PATCH] implement encryption passthrough mode --- deltatar/crypto.py | 93 +++++++++++++++++++++++++++++++-------------------- 1 files changed, 56 insertions(+), 37 deletions(-) diff --git a/deltatar/crypto.py b/deltatar/crypto.py index 984bcab..9c4823c 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -260,6 +260,22 @@ def tag_read_stream (source): ############################################################################### +## passthrough / null encryption +############################################################################### + +class PassthroughCipher (object): + + tag = struct.pack ("