This commit is contained in:
lykos@d125a37d89b1cfac20829f12911656c40cb70018 2024-06-27 10:47:43 +00:00 committed by admin
parent f9ce7a452c
commit bc451b6aa8

View file

@ -0,0 +1,14 @@
Hello,
I need to do some plumbing in a special remote. What is the best way to get the filenames of all the chunks belonging to a key?
From https://git-annex.branchable.com/internals/ I know that `.log.cnk` stores size and number of chunks. And that part of the cipher in remote.log is used as the HMAC encryption key.
I found that I can use `openssl` to calculate the HMAC, but what exactly do I need to feed it?
```
echo $PAYLOAD | openssl sha512 -hex -mac HMAC -macopt hexkey:$KEY_HEX
```
Or is there a git-annex plumbing command that I overlooked?
--lykos153