Public Member Functions | Static Public Attributes | Friends | List of all members
SHA1Digest Class Reference

The SHA1 message digest. More...

Collaboration diagram for SHA1Digest:
Collaboration graph
[legend]

Public Member Functions

 SHA1Digest ()
 
 SHA1Digest (Istream &is)
 
void clear ()
 
bool empty () const
 
std::string str (const bool prefixed=false) const
 
Istreamread (Istream &is)
 
Ostreamwrite (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
 

Detailed Description

The SHA1 message digest.

See also
Foam::SHA1
Source files

Definition at line 56 of file SHA1Digest.H.

Constructor & Destructor Documentation

◆ SHA1Digest() [1/2]

Definition at line 74 of file SHA1Digest.C.

References SHA1Digest::clear().

Here is the call graph for this function:

◆ SHA1Digest() [2/2]

SHA1Digest ( Istream is)
explicit

Definition at line 80 of file SHA1Digest.C.

References clear(), and Foam::read().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 89 of file SHA1Digest.C.

Referenced by SHA1Digest::SHA1Digest().

Here is the caller graph for this function:

◆ empty()

bool empty ( ) const

Definition at line 95 of file SHA1Digest.C.

◆ str()

std::string str ( const bool  prefixed = false) const

Definition at line 109 of file SHA1Digest.C.

References hexChars.

◆ read()

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>>().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==() [1/3]

bool operator== ( const SHA1Digest rhs) const

Definition at line 169 of file SHA1Digest.C.

◆ operator==() [2/3]

bool operator== ( const std::string &  hexdigits) const

Definition at line 175 of file SHA1Digest.C.

References hexChars.

◆ operator==() [3/3]

bool operator== ( const char *  hexdigits) const

Definition at line 209 of file SHA1Digest.C.

References hexChars.

◆ operator!=() [1/3]

bool operator!= ( const SHA1Digest rhs) const

Definition at line 243 of file SHA1Digest.C.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [2/3]

bool operator!= ( const std::string &  hexdigits) const

Definition at line 249 of file SHA1Digest.C.

References Foam::operator==().

Here is the call graph for this function:

◆ operator!=() [3/3]

bool operator!= ( const char *  hexdigits) const

Definition at line 255 of file SHA1Digest.C.

References Foam::operator==().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ SHA1

friend class SHA1
friend

Definition at line 73 of file SHA1Digest.H.

Member Data Documentation

◆ null

const Foam::SHA1Digest null
static

Definition at line 82 of file SHA1Digest.H.


The documentation for this class was generated from the following files: