SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <md5.h>
Public Member Functions | |
TMd5Sig () | |
TMd5Sig (const TMd5Sig &Md5Sig) | |
TMd5Sig (const PSIn &SIn) | |
TMd5Sig (const TStr &Str) | |
TMd5Sig (const TChA &ChA) | |
TMd5Sig (const char *CStr) | |
TMd5Sig (const TMem &Mem) | |
TMd5Sig (const TMd5 &Md5) | |
TMd5Sig (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TMd5Sig & | operator= (const TMd5Sig &Md5Sig) |
bool | operator== (const TMd5Sig &Md5Sig) const |
bool | operator< (const TMd5Sig &Md5Sig) const |
int | operator[] (const int &CdN) const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
TStr | GetStr () const |
void | GetUInt (const int &StartCd, uint &UInt) const |
Private Types | |
typedef TB1Def::TB1 | uint1 |
Private Attributes | |
uint1 | CdT [16] |
typedef TB1Def::TB1 TMd5Sig::uint1 [private] |
TMd5Sig::TMd5Sig | ( | ) | [inline] |
TMd5Sig::TMd5Sig | ( | const TMd5Sig & | Md5Sig | ) | [inline] |
TMd5Sig::TMd5Sig | ( | const PSIn & | SIn | ) |
TMd5Sig::TMd5Sig | ( | const TStr & | Str | ) |
Definition at line 244 of file md5.cpp.
References CdT, TMd5::New(), and TStrIn::New().
{ PMd5 Md5=TMd5::New(TStrIn::New(Str)); memcpy(CdT, Md5->Sig, 16); }
TMd5Sig::TMd5Sig | ( | const TChA & | ChA | ) |
Definition at line 249 of file md5.cpp.
References TMd5::Add(), CdT, TChA::CStr(), TMd5::Def(), TChA::Len(), and TMd5::Sig.
TMd5Sig::TMd5Sig | ( | const char * | CStr | ) |
TMd5Sig::TMd5Sig | ( | const TMem & | Mem | ) |
Definition at line 259 of file md5.cpp.
References CdT, TMd5::New(), and TMemIn::New().
{ PMd5 Md5=TMd5::New(TMemIn::New(Mem)); memcpy(CdT, Md5->Sig, 16); }
TMd5Sig::TMd5Sig | ( | const TMd5 & | Md5 | ) | [inline] |
TMd5Sig::TMd5Sig | ( | TSIn & | SIn | ) | [inline] |
int TMd5Sig::GetPrimHashCd | ( | ) | const |
Definition at line 264 of file md5.cpp.
References CdT.
Referenced by TStrHashF_Md5::GetPrimHashCd().
{ int HashCd=0; memcpy(&HashCd, &CdT[0], 4); HashCd=abs(HashCd); return HashCd; }
int TMd5Sig::GetSecHashCd | ( | ) | const |
Definition at line 271 of file md5.cpp.
References CdT.
Referenced by TStrHashF_Md5::GetSecHashCd().
{ int HashCd=0; memcpy(&HashCd, &CdT[3], 4); HashCd=abs(HashCd); return HashCd; }
TStr TMd5Sig::GetStr | ( | ) | const |
Definition at line 278 of file md5.cpp.
References CdT, and TCh::GetHexCh().
{ TChA ChA(32); for (int CdN=0; CdN<16; CdN++){ ChA+=TCh::GetHexCh(CdT[CdN]/16); ChA+=TCh::GetHexCh(CdT[CdN]%16); } return ChA; }
void TMd5Sig::GetUInt | ( | const int & | StartCd, |
uint & | UInt | ||
) | const [inline] |
bool TMd5Sig::operator< | ( | const TMd5Sig & | Md5Sig | ) | const [inline] |
bool TMd5Sig::operator== | ( | const TMd5Sig & | Md5Sig | ) | const [inline] |
int TMd5Sig::operator[] | ( | const int & | CdN | ) | const [inline] |
void TMd5Sig::Save | ( | TSOut & | SOut | ) | const [inline] |
uint1 TMd5Sig::CdT[16] [private] |
Definition at line 84 of file md5.h.
Referenced by GetPrimHashCd(), GetSecHashCd(), GetStr(), GetUInt(), operator<(), operator=(), operator==(), operator[](), Save(), and TMd5Sig().