XRootD
XrdCryptoMsgDigest Class Reference

#include <XrdCryptoMsgDigest.hh>

+ Inheritance diagram for XrdCryptoMsgDigest:
+ Collaboration diagram for XrdCryptoMsgDigest:

Public Member Functions

 XrdCryptoMsgDigest ()
 
virtual ~XrdCryptoMsgDigest ()
 
virtual int Final ()
 
virtual bool IsValid ()
 
bool operator== (const XrdCryptoMsgDigest md)
 
virtual int Reset (const char *dgst)
 
virtual int Update (const char *b, int l)
 
- Public Member Functions inherited from XrdCryptoBasic
 XrdCryptoBasic (const char *t=0, int l=0, const char *b=0)
 
virtual ~XrdCryptoBasic ()
 
virtual XrdSutBucketAsBucket ()
 
char * AsHexString ()
 
virtual char * Buffer () const
 
virtual int FromHex (const char *hex)
 
virtual int Length () const
 
virtual int SetBuffer (int l, const char *b)
 
virtual int SetLength (int l)
 
virtual int SetType (const char *t)
 
virtual char * Type () const
 
virtual void UseBuffer (int l, const char *b)
 

Detailed Description

Definition at line 46 of file XrdCryptoMsgDigest.hh.

Constructor & Destructor Documentation

◆ XrdCryptoMsgDigest()

XrdCryptoMsgDigest::XrdCryptoMsgDigest ( )
inline

Definition at line 50 of file XrdCryptoMsgDigest.hh.

50 : XrdCryptoBasic() { }
XrdCryptoBasic(const char *t=0, int l=0, const char *b=0)

◆ ~XrdCryptoMsgDigest()

virtual XrdCryptoMsgDigest::~XrdCryptoMsgDigest ( )
inlinevirtual

Definition at line 51 of file XrdCryptoMsgDigest.hh.

51 { }

Member Function Documentation

◆ Final()

int XrdCryptoMsgDigest::Final ( )
virtual

Reimplemented in XrdCryptosslMsgDigest.

Definition at line 80 of file XrdCryptoMsgDigest.cc.

81 {
82  // Finalize message digest calculation.
83 
84  ABSTRACTMETHOD("XrdCryptoMsgDigest::Final");
85  return -1;
86 }
#define ABSTRACTMETHOD(x)
Definition: XrdCryptoAux.hh:41

References ABSTRACTMETHOD.

Referenced by main(), XrdSecProtocolgsi::Sign(), and XrdSecProtocolgsi::Verify().

+ Here is the caller graph for this function:

◆ IsValid()

bool XrdCryptoMsgDigest::IsValid ( )
virtual

Reimplemented in XrdCryptosslMsgDigest.

Definition at line 43 of file XrdCryptoMsgDigest.cc.

44 {
45  // Check key validity
46  ABSTRACTMETHOD("XrdCryptoMsgDigest::IsValid");
47  return 0;
48 }

References ABSTRACTMETHOD.

Referenced by XrdCryptosslFactory::MsgDigest().

+ Here is the caller graph for this function:

◆ operator==()

bool XrdCryptoMsgDigest::operator== ( const XrdCryptoMsgDigest  md)

Definition at line 51 of file XrdCryptoMsgDigest.cc.

52 {
53  // Compare msg digest md to local md: return 1 if matches, 0 if not
54 
55  if (md.Length() == Length()) {
56  if (!memcmp(md.Buffer(),Buffer(),Length()))
57  return 1;
58  }
59  return 0;
60 }
virtual int Length() const
virtual char * Buffer() const

References XrdCryptoBasic::Buffer(), and XrdCryptoBasic::Length().

+ Here is the call graph for this function:

◆ Reset()

int XrdCryptoMsgDigest::Reset ( const char *  dgst)
virtual

Reimplemented in XrdCryptosslMsgDigest.

Definition at line 62 of file XrdCryptoMsgDigest.cc.

63 {
64  // Re-Init the message digest calculation
65 
66  ABSTRACTMETHOD("XrdCryptoMsgDigest::Reset");
67  return -1;
68 }

References ABSTRACTMETHOD.

Referenced by XrdSecProtocolgsi::Sign(), and XrdSecProtocolgsi::Verify().

+ Here is the caller graph for this function:

◆ Update()

int XrdCryptoMsgDigest::Update ( const char *  b,
int  l 
)
virtual

Reimplemented in XrdCryptosslMsgDigest.

Definition at line 71 of file XrdCryptoMsgDigest.cc.

72 {
73  // Update message digest with the MD of l bytes at b.
74 
75  ABSTRACTMETHOD("XrdCryptoMsgDigest::Update");
76  return -1;
77 }

References ABSTRACTMETHOD.

Referenced by main(), XrdSecProtocolgsi::Sign(), and XrdSecProtocolgsi::Verify().

+ Here is the caller graph for this function:

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