Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6decryptenvelope.h
Go to the documentation of this file.
1 
11 #ifndef P6DECRYPTENVELOPE_H__
12 #define P6DECRYPTENVELOPE_H__ 1
13 
14 #include "p6cryptokey.h"
15 
16 namespace P6R {
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
32 const P6DECENVFLAGS P6DECENV_NOFLAGS = 0x00000000;
33 const P6DECENVFLAGS P6DECENV_TRACEON = 0x00000001;
34 
35 
49 interface p6IDecryptEnvelope : public p6ICom
50 {
64  P6COMMETHOD initialize( P6DECENVFLAGS flags ) = 0;
65 
88  P6COMMETHOD setKey( p6ICryptoKey* pCryptoKey, P6CRYPTODATASOURCE* pInKeyWrapper ) = 0;
89 
116 };
117 
118 // {2518C74A-0444-4f05-9C6F-FD0EDF59FE4C}
119 #define IF_p6IDecryptEnvelope {0x2518c74a,0x444,0x4f05,{0x9c,0x6f,0xfd,0xe,0xdf,0x59,0xfe,0x4c}}
120 
121 // {A91A9E78-5E4A-46c7-B6DF-5F47C1068005}
122 #define COMP_p6DecryptEnvelope {0xa91a9e78,0x5e4a,0x46c7,{0xb6,0xdf,0x5f,0x47,0xc1,0x6,0x80,0x5}}
123 
124 #ifdef __cplusplus
125 }
126 #endif
127 
128 } // namespace
129 
130 
131 #endif
132 
133 
134 
135 
136 
137 
138 
139 
This interface provides key metadata infrormation and key access.
Definition: p6cryptokey.h:787
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR initialize(P6DECENVFLAGS flags)=0
Sets up the object to run properly.
const P6DECENVFLAGS P6DECENV_NOFLAGS
virtual P6R::P6ERR decryptEnvelope(P6CRYPTODATASOURCE *pInData, P6CRYPTODATASINK *pOutData)=0
Using the symetric key generated by calling genSessionKey encrypt the block of data provided by the d...
Where to get the data to process, either a file or generic buffer.
Definition: p6crypto.h:37
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR setKey(p6ICryptoKey *pCryptoKey, P6CRYPTODATASOURCE *pInKeyWrapper)=0
Load RSA Private key from a file on disk and the session key wrapper into the p6crypto component...
This interface provides a mechanism to use PKI for the encryption of chunks of data.
Where to put the data processed, either a file or generic buffer.
Definition: p6crypto.h:55
P6UINT32 P6DECENVFLAGS
P6DECENVFLAGS.
#define P6COMMETHOD
Definition: p6types.h:872
const P6DECENVFLAGS P6DECENV_TRACEON
P6R Cryptographic key interface definitions.