1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

* `nix-store --export --sign': sign the Nix archive using the RSA key

in /nix/etc/nix/signing-key.sec
This commit is contained in:
Eelco Dolstra 2007-02-21 14:31:42 +00:00
parent 6c9fdb17fb
commit 46e0919ced
8 changed files with 125 additions and 32 deletions

View file

@ -2,6 +2,7 @@
#define __HASH_H
#include "types.hh"
#include "serialise.hh"
namespace nix {
@ -81,7 +82,23 @@ Hash compressHash(const Hash & hash, unsigned int newSize);
/* Parse a string representing a hash type. */
HashType parseHashType(const string & s);
typedef union Ctx;
class HashSink : public Sink
{
private:
HashType ht;
Ctx * ctx;
public:
HashSink(HashType ht);
~HashSink();
virtual void operator () (const unsigned char * data, unsigned int len);
Hash finish();
};
}