55 Ostream&
operator<<(Ostream&,
const SHA1Digest&);
71 static const unsigned length = 20;
95 std::string
str(
const bool prefixed=
false)
const;
110 bool operator==(
const std::string& hexdigits)
const;
123 bool operator!=(
const std::string& hexdigits)
const;
150 static unsigned char readHexDigit(
Istream&);
std::string str(const bool prefixed=false) const
Return (40-byte) text representation, optionally with '_' prefix.
bool operator!=(const SHA1Digest &) const
Inequality operator.
friend Ostream & operator<<(Ostream &, const SHA1Digest &)
Write (40-byte) text representation, unquoted and without prefix.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static const unsigned length
The length of the (uncoded) digest contents.
Istream & operator>>(Istream &, directionInfo &)
SHA1Digest()
Construct a zero digest.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
friend Istream & operator>>(Istream &, SHA1Digest &)
Read (40-byte) text representation.
void clear()
Reset the digest to zero.
Ostream & operator<<(Ostream &, const ensightPart &)
Ostream & write(Ostream &, const bool prefixed=false) const
Write (40-byte) text representation, optionally with '_' prefix.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
bool empty() const
Return true if the digest is empty (ie, all zero).
bool operator==(const SHA1Digest &) const
Equality operator.
static const SHA1Digest null
A null digest (ie, all zero)