Go to the documentation of this file.
78 virtual std::streamsize
xsputn(
const char* str, std::streamsize
n)
93 virtual public std::ios,
161 "OSHA1stream.sinkFile_",
SHA1 & append(const char *data, size_t len)
Append data for processing.
streamFormat format() const
Return current stream format.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
SHA1 & sha1()
Full access to the sha1.
void rewind()
Clear the SHA1 calculation.
virtual ostream & stdStream()
Access to underlying std::ostream.
static const versionNumber currentVersion
Current version number.
OSHA1stream(const OSHA1stream &)
Disallow default bitwise copy construct.
void operator=(const OSHA1stream &)
Disallow default bitwise assignment.
A basic output stream for calculating SHA1 digests.
~OSHA1stream()
Destructor.
The output stream for calculating SHA1 digests.
osha1stream()
Construct null.
A streambuf class for calculating SHA1 digests.
SHA1 sha1_
This does all the work and has its own buffering.
SHA1Digest digest() const
Calculate current digest from appended data.
versionNumber version() const
Return the stream version.
void clear()
Reset the hashed data before appending more.
OSstream(ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
Foam::SHA1Digest digest()
Return SHA1::Digest for the data processed until now.
Foam::SHA1 & sha1()
Full access to the sha1.
sha1streambuf()
Construct null.
virtual std::streamsize xsputn(const char *str, std::streamsize n)
Process unbuffered.
streamFormat
Enumeration for the format of data in the stream.
sha1streambuf * rdbuf()
This hides both signatures of std::basic_ios::rdbuf()