From e647360a0ec5c08d6fdfeaaa93b99dcba368bc70 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 18 Mar 2022 20:24:48 +0100 Subject: [PATCH] crypto: better raise NotImplementedError if we have no id_hash --- src/borg/crypto/key.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/borg/crypto/key.py b/src/borg/crypto/key.py index 374799571..89674e5ed 100644 --- a/src/borg/crypto/key.py +++ b/src/borg/crypto/key.py @@ -156,6 +156,7 @@ class KeyBase: def id_hash(self, data): """Return HMAC hash using the "id" HMAC key """ + raise NotImplementedError def encrypt(self, chunk): pass