logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::Digest - The digest base class is used for implementing and deriving one way hashing functions.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                                  ost::Digest(3)

Constructor & Destructor Documentation

ost::Digest::Digest()[protected]virtualost::Digest::~Digest()[virtual]

Detailed Description

       The digest base class is used for implementing and deriving one way hashing functions.

       Author
           David Sugar dyfet@ostel.com

       base class for hashing services.

Member Function Documentation

virtualunsignedost::Digest::getDigest(unsignedchar*buffer)[protected],[purevirtual]
       Copy the binary digest buffer to user memory.

       Returns
           number of bytes in digest.

       Parametersbuffer to write into.

       Implemented in ost::MD5Digest, ost::CRC32Digest, ost::CRC16Digest, and ost::ChecksumDigest.

   virtualunsignedost::Digest::getSize(void)[protected],[purevirtual]
       Get the size of a digest in octets.

       Returns
           number of bytes in digest.

       Implemented in ost::MD5Digest, ost::CRC32Digest, ost::CRC16Digest, and ost::ChecksumDigest.

   virtualvoidost::Digest::initDigest(void)[purevirtual]
       Reset the digest table to an initial default value.

       Implemented in ost::MD5Digest, ost::CRC32Digest, ost::CRC16Digest, and ost::ChecksumDigest.

   virtualvoidost::Digest::putDigest(constunsignedchar*buffer,unsignedlength)[protected],[purevirtual]
       Put data into the digest bypassing the stream subsystem.

       Parametersbuffer to read from.
           length of data.

       Implemented in ost::CRC32Digest, ost::CRC16Digest, ost::ChecksumDigest, and ost::MD5Digest.

   virtualstd::ostream&ost::Digest::strDigest(std::ostream&os)[protected],[purevirtual]
       print a digest string for export.

       Returns
           string representation of digest.

       Implemented in ost::MD5Digest, ost::CRC32Digest, ost::CRC16Digest, and ost::ChecksumDigest.

Name

       ost::Digest - The digest base class is used for implementing and deriving one way hashing functions.

Synopsis

       #include <digest.h>

       Inherits streambuf, and ostream.

       Inherited by ost::ChecksumDigest, ost::CRC16Digest, ost::CRC32Digest, and ost::MD5Digest.

   PublicMemberFunctions
       virtual void initDigest (void)=0
           Reset the digest table to an initial default value.
       virtual ~Digest ()

   ProtectedMemberFunctionsDigest ()
       virtual unsigned getSize (void)=0
           Get the size of a digest in octets.
       virtual unsigned getDigest (unsigned char *buffer)=0
           Copy the binary digest buffer to user memory.
       virtual void putDigest (const unsigned char *buffer, unsigned length)=0
           Put data into the digest bypassing the stream subsystem.
       virtual std::ostream & strDigest (std::ostream &os)=0
           print a digest string for export.

   Friends
       std::ostream & operator<< (std::ostream &os, Digest &ia)

See Also