#pragma once #include #include "types.hh" #include "serialise.hh" namespace nix { extern const string base32Chars; typedef enum { htUnknown = 0, htMD5 = GCRY_MD_MD5, htSHA1 = GCRY_MD_SHA1, htSHA256 = GCRY_MD_SHA256, htSHA512 = GCRY_MD_SHA512, htSHA3_256 = GCRY_MD_SHA3_256, htSHA3_512 = GCRY_MD_SHA3_512, htBLAKE2s_256 = GCRY_MD_BLAKE2S_256 } HashType; struct Hash { static const unsigned int maxHashSize = 64; unsigned int hashSize; unsigned char hash[maxHashSize]; HashType type; /* Create an unusable hash object. */ Hash(); /* Create a zero-filled hash object. */ Hash(HashType type); /* Check whether two hash are equal. */ bool operator == (const Hash & h2) const; /* Check whether two hash are not equal. */ bool operator != (const Hash & h2) const; /* For sorting. */ bool operator < (const Hash & h) const; }; /* Convert a hash to a hexadecimal representation. */ string printHash(const Hash & hash); /* Parse a hexadecimal representation of a hash co
aboutsummaryrefslogtreecommitdiff
path: root/nix/libstore/sqlite.cc
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-05 17:04:34 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:36 +0200
commit3dfe69804de75cd80c451cc877f5b060af4b6e95 (patch)
tree9a3bd078ea0dda218ed6995e973d34ea47377db0 /nix/libstore/sqlite.cc
parent7826f40ef96b5963f5ab12ac0e00c9390203c645 (diff)
downloadguix-3dfe69804de75cd80c451cc877f5b060af4b6e95.tar.gz
guix-3dfe69804de75cd80c451cc877f5b060af4b6e95.zip
gnu: rust-linked-hash-map-0.3: Skip tests.
* gnu/packages/crates-io.scm (rust-linked-hash-map-0.3)[arguments]: Skip the test suite. Change-Id: Ie7227e98a7d0377dd37c7c680e938e6617c06f52
Diffstat (limited to 'nix/libstore/sqlite.cc')
0 files changed, 0 insertions, 0 deletions