浏览代码

crypto: better raise NotImplementedError if we have no id_hash

Thomas Waldmann 3 年之前
父节点
当前提交
e647360a0e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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):
     def id_hash(self, data):
         """Return HMAC hash using the "id" HMAC key
         """Return HMAC hash using the "id" HMAC key
         """
         """
+        raise NotImplementedError
 
 
     def encrypt(self, chunk):
     def encrypt(self, chunk):
         pass
         pass