14#ifndef GDCMCAPICRYPTOGRAPHICMESSAGESYNTAX_H
15#define GDCMCAPICRYPTOGRAPHICMESSAGESYNTAX_H
43 bool Encrypt(
char *output,
size_t &outlen,
const char *array,
size_t len)
const;
45 bool Decrypt(
char *output,
size_t &outlen,
const char *array,
size_t len)
const;
54 static ALG_ID GetAlgIdByObjId(
const char * pszObjId);
55 const char *GetCipherObjId()
const;
56 static void ReverseBytes(
unsigned char* data, DWORD len);
57 static bool LoadFile(
const char * filename,
unsigned char* & buffer, DWORD & bufLen);
62 std::vector<PCCERT_CONTEXT> certifList;
64 CipherTypes cipherType;
Definition gdcmCAPICryptographicMessageSyntax.h:26
void SetCipherType(CipherTypes type)
bool GetInitialized() const
Definition gdcmCAPICryptographicMessageSyntax.h:47
bool ParseKeyFile(const char *filename)
bool Encrypt(char *output, size_t &outlen, const char *array, size_t len) const
create a CMS envelopedData structure
bool SetPassword(const char *pass, size_t passLen)
CAPICryptographicMessageSyntax()
bool Decrypt(char *output, size_t &outlen, const char *array, size_t len) const
decrypt content from a CMS envelopedData structure
CipherTypes GetCipherType() const
~CAPICryptographicMessageSyntax()
bool ParseCertificateFile(const char *filename)
Definition gdcmCryptographicMessageSyntax.h:23
CipherTypes
Definition gdcmCryptographicMessageSyntax.h:31
#define GDCM_EXPORT
Definition gdcmWin32.h:34