14#ifndef GDCMOPENSSLCRYPTOGRAPHICMESSAGESYNTAX_H
15#define GDCMOPENSSLCRYPTOGRAPHICMESSAGESYNTAX_H
18#include <openssl/cms.h>
19#include <openssl/evp.h>
42 bool Encrypt(
char *output,
size_t &outlen,
const char *array,
size_t len)
const;
44 bool Decrypt(
char *output,
size_t &outlen,
const char *array,
size_t len)
const;
50 STACK_OF(X509) *recips;
53 const EVP_CIPHER *internalCipherType;
55 size_t passwordLength;
Definition gdcmCryptographicMessageSyntax.h:23
CipherTypes
Definition gdcmCryptographicMessageSyntax.h:31
Definition gdcmOpenSSLCryptographicMessageSyntax.h:25
bool ParseKeyFile(const char *filename)
bool ParseCertificateFile(const char *filename)
CipherTypes GetCipherType() const
bool Encrypt(char *output, size_t &outlen, const char *array, size_t len) const
create a CMS envelopedData structure
OpenSSLCryptographicMessageSyntax()
~OpenSSLCryptographicMessageSyntax()
bool Decrypt(char *output, size_t &outlen, const char *array, size_t len) const
decrypt content from a PKCS#7 envelopedData structure
bool SetPassword(const char *pass, size_t passLen)
void SetCipherType(CipherTypes type)
#define GDCM_EXPORT
Definition gdcmWin32.h:34