|
GDCM
2.2.4
|
Class for CryptographicMessageSyntax encryption. This is just a simple wrapper around openssl PKCS7_encrypt functionalities. More...
#include <gdcmCryptographicMessageSyntax.h>
Public Types | |
| enum | CipherTypes { DES_CIPHER, DES3_CIPHER, AES128_CIPHER, AES192_CIPHER, AES256_CIPHER } |
Public Member Functions | |
| CryptographicMessageSyntax () | |
| ~CryptographicMessageSyntax () | |
| bool | Decrypt (char *output, size_t &outlen, const char *array, size_t len) const |
| decrypt content from a PKCS#7 envelopedData structure More... | |
| bool | Encrypt (char *output, size_t &outlen, const char *array, size_t len) const |
| create a PKCS#7 envelopedData structure More... | |
| CipherTypes | GetCipherType () const |
| bool | ParseCertificateFile (const char *filename) |
| bool | ParseKeyFile (const char *filename) |
| void | SetCipherType (CipherTypes type) |
Class for CryptographicMessageSyntax encryption. This is just a simple wrapper around openssl PKCS7_encrypt functionalities.
See online documentation http://www.openssl.org/docs/crypto/PKCS7_encrypt.html
| gdcm::CryptographicMessageSyntax::CryptographicMessageSyntax | ( | ) |
| gdcm::CryptographicMessageSyntax::~CryptographicMessageSyntax | ( | ) |
| bool gdcm::CryptographicMessageSyntax::Decrypt | ( | char * | output, |
| size_t & | outlen, | ||
| const char * | array, | ||
| size_t | len | ||
| ) | const |
decrypt content from a PKCS#7 envelopedData structure
| bool gdcm::CryptographicMessageSyntax::Encrypt | ( | char * | output, |
| size_t & | outlen, | ||
| const char * | array, | ||
| size_t | len | ||
| ) | const |
create a PKCS#7 envelopedData structure
| CipherTypes gdcm::CryptographicMessageSyntax::GetCipherType | ( | ) | const |
| bool gdcm::CryptographicMessageSyntax::ParseCertificateFile | ( | const char * | filename | ) |
| bool gdcm::CryptographicMessageSyntax::ParseKeyFile | ( | const char * | filename | ) |
| void gdcm::CryptographicMessageSyntax::SetCipherType | ( | CipherTypes | type | ) |
Set Cipher Type. Default is: AES256_CIPHER
1.8.6