Go to the documentation of this file.
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;
Ostream & write(Ostream &, const bool prefixed=false) const
Write (40-byte) text representation, optionally with '_' prefix.
SHA1Digest()
Construct a zero digest.
bool operator==(const SHA1Digest &) const
Equality operator.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
static const unsigned length
The length of the (uncoded) digest contents.
void clear()
Reset the digest to zero.
static unsigned char readHexDigit(Istream &)
Read hexadecimal value, ignoring leading or intermediate '_'.
bool empty() const
Return true if the digest is empty (ie, all zero).
friend Istream & operator>>(Istream &, SHA1Digest &)
Read (40-byte) text representation.
unsigned char v_[length]
The digest contents.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
friend Ostream & operator<<(Ostream &, const SHA1Digest &)
Write (40-byte) text representation, unquoted and without prefix.
bool operator!=(const SHA1Digest &) const
Inequality operator.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
std::string str(const bool prefixed=false) const
Return (40-byte) text representation, optionally with '_' prefix.