MCPcopy
hub / github.com/borgbackup/borg / id_hash

Method id_hash

src/borg/crypto/key.py:185–187  ·  view source on GitHub ↗

Return HMAC hash using the "id" HMAC key

(self, data)

Source from the content-addressed store, hash-verified

183 self.copy_crypt_key = False
184
185 def id_hash(self, data):
186 """Return HMAC hash using the "id" HMAC key"""
187 raise NotImplementedError
188
189 def encrypt(self, id, data):
190 pass

Callers 13

assert_idMethod · 0.95
assert_idMethod · 0.45
do_debug_id_hashMethod · 0.45
_put_encrypted_objectMethod · 0.45
test_plaintextMethod · 0.45
test_keyfileMethod · 0.45
test_keyfile_kfenvMethod · 0.45
test_roundtripMethod · 0.45
test_assert_idMethod · 0.45

Calls

no outgoing calls

Tested by 10

_put_encrypted_objectMethod · 0.36
test_plaintextMethod · 0.36
test_keyfileMethod · 0.36
test_keyfile_kfenvMethod · 0.36
test_roundtripMethod · 0.36
test_assert_idMethod · 0.36
test_spoofed_archiveFunction · 0.36