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

If hashes do not match, print them in base-32 for SHA-1/SHA-256

Fixes #57.
This commit is contained in:
Eelco Dolstra 2012-10-23 18:05:50 +02:00
parent a28b4445a4
commit 4c34d384e6
3 changed files with 10 additions and 1 deletions

View file

@ -54,6 +54,9 @@ unsigned int hashLength32(const Hash & hash);
/* Convert a hash to a base-32 representation. */
string printHash32(const Hash & hash);
/* Print a hash in base-16 if it's MD5, or base-32 otherwise. */
string printHash16or32(const Hash & hash);
/* Parse a base-32 representation of a hash code. */
Hash parseHash32(HashType ht, const string & s);