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