The SHA1 message digest. More...
Public Member Functions | |
SHA1Digest () | |
SHA1Digest (Istream &is) | |
void | clear () |
bool | empty () const |
std::string | str (const bool prefixed=false) const |
Istream & | read (Istream &is) |
Ostream & | write (Ostream &os, const bool prefixed=false) const |
bool | operator== (const SHA1Digest &) const |
bool | operator== (const std::string &hexdigits) const |
bool | operator== (const char *hexdigits) const |
bool | operator!= (const SHA1Digest &) const |
bool | operator!= (const std::string &hexdigits) const |
bool | operator!= (const char *hexdigits) const |
Static Public Attributes | |
static const SHA1Digest | null |
Friends | |
class | SHA1 |
The SHA1 message digest.
Definition at line 56 of file SHA1Digest.H.
SHA1Digest | ( | ) |
Definition at line 74 of file SHA1Digest.C.
References SHA1Digest::clear().
|
explicit |
Definition at line 80 of file SHA1Digest.C.
References clear(), and Foam::read().
void clear | ( | ) |
Definition at line 89 of file SHA1Digest.C.
Referenced by SHA1Digest::SHA1Digest().
bool empty | ( | ) | const |
Definition at line 95 of file SHA1Digest.C.
std::string str | ( | const bool | prefixed = false | ) | const |
Definition at line 109 of file SHA1Digest.C.
References hexChars.
Foam::Istream & read | ( | Istream & | is | ) |
Definition at line 134 of file SHA1Digest.C.
References IOstream::check(), FUNCTION_NAME, and Foam::readHexDigit().
Referenced by Foam::operator>>().
Foam::Ostream & write | ( | Ostream & | os, |
const bool | prefixed = false |
||
) | const |
Definition at line 149 of file SHA1Digest.C.
References IOstream::check(), FUNCTION_NAME, hexChars, os(), and OBJstream::write().
Referenced by Foam::operator<<(), and dynamicCode::writeDigest().
bool operator== | ( | const SHA1Digest & | rhs | ) | const |
Definition at line 169 of file SHA1Digest.C.
bool operator== | ( | const std::string & | hexdigits | ) | const |
Definition at line 175 of file SHA1Digest.C.
References hexChars.
bool operator== | ( | const char * | hexdigits | ) | const |
Definition at line 209 of file SHA1Digest.C.
References hexChars.
bool operator!= | ( | const SHA1Digest & | rhs | ) | const |
Definition at line 243 of file SHA1Digest.C.
References Foam::operator==().
bool operator!= | ( | const std::string & | hexdigits | ) | const |
Definition at line 249 of file SHA1Digest.C.
References Foam::operator==().
bool operator!= | ( | const char * | hexdigits | ) | const |
Definition at line 255 of file SHA1Digest.C.
References Foam::operator==().
|
friend |
Definition at line 73 of file SHA1Digest.H.
|
static |
Definition at line 82 of file SHA1Digest.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.