nix-super/perl/lib/Nix
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
..
Config.pm.in Use libsodium instead of OpenSSL for binary cache signing 2015-02-04 17:10:31 +01:00
CopyClosure.pm SSH.pm: Print a friendlier message if connecting fails 2014-11-10 16:03:51 +01:00
GeneratePatches.pm Install bsdiff and bspatch in $(libexecdir)/nix 2013-12-02 20:21:31 +00:00
Manifest.pm Sign a subset of the .narinfo 2015-02-04 17:59:31 +01:00
SSH.pm SSH.pm: Print a friendlier message if connecting fails 2014-11-10 16:03:51 +01:00
Store.pm Use libsodium instead of OpenSSL for binary cache signing 2015-02-04 17:10:31 +01:00
Store.xs Use libsodium instead of OpenSSL for binary cache signing 2015-02-04 17:10:31 +01:00
Utils.pm Fix bad operator 2014-11-20 11:45:01 +01:00