nix/perl
Eelco Dolstra f3a5930488 Sign a subset of the .narinfo
We only need to sign the store path, NAR hash and references (the
"fingerprint"). Everything else is irrelevant to security. For
instance, the compression algorithm or the hash of the compressed NAR
don't matter as long as the contents of the uncompressed NAR are
correct.

(Maybe we should include derivers in the fingerprint, but they're
broken and nobody cares about them. Also, it might be nice in the
future if .narinfos contained signatures from multiple independent
signers. But that's impossible if the deriver is included in the
fingerprint, since everybody will tend to have a different deriver for
the same store path.)

Also renamed the "Signature" field to "Sig" since the format changed
in an incompatible way.
2015-02-04 17:59:31 +01:00
..
lib/Nix Sign a subset of the .narinfo 2015-02-04 17:59:31 +01:00
local.mk Use libsodium instead of OpenSSL for binary cache signing 2015-02-04 17:10:31 +01:00
MANIFEST * Include the Nix Perl bindings in Nix itself. This will allow the 2011-10-10 18:12:40 +00:00