Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
crypto.hh File Reference
#include <map>
#include <string>
Include dependency graph for crypto.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nix::Key
 
struct  nix::SecretKey
 
struct  nix::PublicKey
 

Typedefs

typedef std::map< std::string, PublicKeynix::PublicKeys
 

Functions

bool nix::verifyDetached (const std::string &data, const std::string &sig, const PublicKeys &publicKeys)
 
PublicKeys nix::getDefaultPublicKeys ()
 

Function Documentation

◆ verifyDetached()

bool nix::verifyDetached ( const std::string & data,
const std::string & sig,
const PublicKeys & publicKeys )
Returns
true iff ‘sig’ is a correct signature over ‘data’ using one of the given public keys.