Quellcode durchsuchen

crypto: better raise NotImplementedError if we have no id_hash

Thomas Waldmann vor 3 Jahren
Ursprung
Commit
e647360a0e
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      src/borg/crypto/key.py

+ 1 - 0
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