12 #define P6DIGEST_H__ 1
34 static const P6DIGESTFLAGS P6DIGEST_NOFLAGS = 0x00000000;
35 static const P6DIGESTFLAGS P6DIGEST_TRACEON = 0x00000001;
36 static const P6DIGESTFLAGS P6DIGEST_NONULLTERM = 0x00000002;
56 static P6SIZE const P6DIGEST_MD2SZ = 16;
57 static P6SIZE const P6DIGEST_MD4SZ = 16;
58 static P6SIZE const P6DIGEST_MD5SZ = 16;
59 static P6SIZE const P6DIGEST_SHA1SZ = 20;
60 static P6SIZE const P6DIGEST_SHA224SZ = 28;
61 static P6SIZE const P6DIGEST_SHA256SZ = 32;
62 static P6SIZE const P6DIGEST_SHA384SZ = 48;
63 static P6SIZE const P6DIGEST_SHA512SZ = 64;
64 static P6SIZE const P6DIGEST_RIPEMD160SZ = 20;
65 static P6SIZE const P6DIGEST_MAX = 64;
68 static P6SIZE const P6DIGEST_MD2STRSZ = 33;
69 static P6SIZE const P6DIGEST_MD4STRSZ = 33;
70 static P6SIZE const P6DIGEST_MD5STRSZ = 33;
71 static P6SIZE const P6DIGEST_SHA1STRSZ = 41;
72 static P6SIZE const P6DIGEST_SHA224STRSZ = 57;
73 static P6SIZE const P6DIGEST_SHA256STRSZ = 65;
74 static P6SIZE const P6DIGEST_SHA384STRSZ = 97;
75 static P6SIZE const P6DIGEST_SHA512STRSZ = 129;
76 static P6SIZE const P6DIGEST_RIPEMD160STRSZ = 41;
77 static P6SIZE const P6DIGEST_STRMAX = 129;
88 #define INTERFACE p6IDigest
338 #define IF_p6IDigest {0x28f63442,0x24bd,0x4741,{0x8e,0xc6,0xea,0x91,0x15,0x70,0xed,0x45}}
341 #define COMP_p6Digest {0x930e6287,0xbc9f,0x4064,{0x91,0x85,0x2,0x9f,0x5b,0xf7,0x6b,0x42}}
352 #define INTERFACE p6IDigest2
668 #define IF_p6IDigest2 {0x2708aa22,0xea65,0x4aa6,{0x98,0xae,0xac,0xe,0xfe,0xa2,0xd,0x8e}}
This interface provides message digest generation.
Cryptography component definitions.
This interface provides message digest generation.
unsigned char P6BOOL
Boolean type.
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.
P6UINT32 P6DIGESTFLAGS
P6DIGESTFLAGS.
Where to put the data processed, either a file or generic buffer.
#define P6DECLCOMMETHOD(method)
#define P6DECLAREIF_(iface, baseif)