class TMessageDigest : public MCollectible { // Copyright (C) 1995 Taligent, Inc. All rights reserved. public: //................................................................. // destructor virtual ~TMessageDigest(); //................................................................. // MCollectible overrides. TStream& operator>>= (TStream& toWhere) const; TStream& operator<<= (TStream& fromWhere); //................................................................. // TMessageDigest specific operations. virtual void GetDigestType (TText& type) const= 0; virtual void GetMessageDigest(TPrimitiveTypeArray <unsigned char>& array) const; protected: };
GetMessageDigest returns the array of unsigned characters that contains the message digest. The message digest is set by the derived class algorithm when the encryption is complete. If the digest has not yet been set, TPrimitiveTypeArray contains zero values.
SetMessageDigest can be used by the derived class algorithm to load the resulting message digest into the TMessageDigest portion of the object.
Member functions
GetDigestType is a pure virtual function that needs to be implemented in all derived classes. Deriving classes
A TMessageDigest object can be derived to provide implementations of the various message digest algorithms. For a complete implementation, DigestType must be overridden. Concurrency
The TMessageDigest class is not designed for concurrent access. Resource use
No special requirements.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Generated with WebMaker