소스 검색

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):
         """Return HMAC hash using the "id" HMAC key
         """
+        raise NotImplementedError
 
     def encrypt(self, chunk):
         pass