tools: zip: make encrypted archives reproducible
authorSungbo Eo <mans0n@gorani.run>
Sat, 12 Feb 2022 08:01:31 +0000 (17:01 +0900)
committerSungbo Eo <mans0n@gorani.run>
Wed, 9 Mar 2022 06:38:23 +0000 (15:38 +0900)
commit4f3a565f5d23724cc46d9a32d76ad18425fe6e2d
tree2c79c334e3e1490d75e51bda2ac4bc8758e7c1b2
parent39d06472eb93d72940b2728d33e2dafa2676e47b
tools: zip: make encrypted archives reproducible

Zip always try to generate new encryption header depending on execution
time and process id, which is far from being reproducible. This commit
changes the zip srand() seed to a predictable value to generate
reproducible random bytes for the encryption header. This will compromise
the goal of secure archive encryption, but it would not be a big problem
for our purpose.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
tools/zip/patches/012-make-encrypted-archives-reproducible.patch [new file with mode: 0644]