12 #define P6DIGEST_H__ 1
290 #define IF_p6IDigest {0x28f63442,0x24bd,0x4741,{0x8e,0xc6,0xea,0x91,0x15,0x70,0xed,0x45}}
293 #define COMP_p6Digest {0x930e6287,0xbc9f,0x4064,{0x91,0x85,0x2,0x9f,0x5b,0xf7,0x6b,0x42}}
308 static P6SIZE const P6DIGEST_MD2SZ = 16;
309 static P6SIZE const P6DIGEST_MD4SZ = 16;
310 static P6SIZE const P6DIGEST_MD5SZ = 16;
311 static P6SIZE const P6DIGEST_SHA1SZ = 20;
312 static P6SIZE const P6DIGEST_SHA224SZ = 28;
313 static P6SIZE const P6DIGEST_SHA256SZ = 32;
314 static P6SIZE const P6DIGEST_SHA384SZ = 48;
315 static P6SIZE const P6DIGEST_SHA512SZ = 64;
316 static P6SIZE const P6DIGEST_RIPEMD160SZ = 20;
317 static P6SIZE const P6DIGEST_MAX = 64;
320 static P6SIZE const P6DIGEST_MD2STRSZ = 33;
321 static P6SIZE const P6DIGEST_MD4STRSZ = 33;
322 static P6SIZE const P6DIGEST_MD5STRSZ = 33;
323 static P6SIZE const P6DIGEST_SHA1STRSZ = 41;
324 static P6SIZE const P6DIGEST_SHA224STRSZ = 57;
325 static P6SIZE const P6DIGEST_SHA256STRSZ = 65;
326 static P6SIZE const P6DIGEST_SHA384STRSZ = 97;
327 static P6SIZE const P6DIGEST_SHA512STRSZ = 129;
328 static P6SIZE const P6DIGEST_RIPEMD160STRSZ = 41;
329 static P6SIZE const P6DIGEST_STRMAX = 129;
This interface provides message digest generation.
Cryptography component definitions.
virtual P6R::P6ERR calculateMD5(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
MD5 (Message Digest Algorithm 5) is a cryptographic hash function that was designed by Ron Rivest in ...
virtual P6R::P6ERR calculateSHA512(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
SHA512 cryptographic hash (in the SHA-2 family) function has a 512 bit digest size.
virtual P6R::P6ERR calculateSHA224(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
SHA224 cryptographic hash (in the SHA-2 family) function is simply a truncated version of SHA256 and ...
virtual P6R::P6ERR calculateSHA256(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
SHA256 cryptographic hash (in the SHA-2 family) function has a 256 bit digest size.
Where to get the data to process, either a file or generic buffer.
The base interface all [p6]COM components must derive from and implement.
const P6DIGESTFLAGS P6DIGEST_TRACEON
const P6DIGESTFLAGS P6DIGEST_NOFLAGS
P6UINT32 P6DIGESTFLAGS
P6DIGESTFLAGS.
virtual P6R::P6ERR calculateMD2(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
MD2 (Message Digest Algorithm 2) is a cryptographic hash function that was developed by Ronald Rivest...
virtual P6R::P6ERR calculateRIPEMD160(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
RIPEMD-160 cryptographic hash function (160 bit digest size) The RIPEMD-160 of either a file (both bi...
virtual P6R::P6ERR calculateSHA384(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
SHA384 cryptographic hash (in the SHA-2 family) function is simply a truncated version of SHA512 and ...
Where to put the data processed, either a file or generic buffer.
virtual P6R::P6ERR calculateMD4(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
MD4 (Message Digest Algorithm 4) is a cryptographic hash function that was designed by Professor Rona...
virtual P6R::P6ERR calculateSHA1(P6CRYPTODATASOURCE *pInData, P6BOOL base64Encode, P6CRYPTODATASINK *pOutData)=0
SHA1 cryptographic hash function (160 bit digest size) The SHA1 of either a file (both binary and tex...
virtual P6R::P6ERR initialize(P6DIGESTFLAGS flags)=0
This method inializes the component for use and must be called successfully before any other method...