GDCM
2.4.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
Common
gdcmCryptographicMessageSyntax.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: GDCM (Grassroots DICOM). A DICOM library
4
5
Copyright (c) 2006-2011 Mathieu Malaterre
6
All rights reserved.
7
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef GDCMCRYPTOGRAPHICMESSAGESYNTAX_H
15
#define GDCMCRYPTOGRAPHICMESSAGESYNTAX_H
16
17
#include "
gdcmTypes.h
"
18
19
namespace
gdcm
20
{
21
22
class
GDCM_EXPORT
CryptographicMessageSyntax
23
{
24
public
:
25
CryptographicMessageSyntax
() {}
26
27
virtual
~CryptographicMessageSyntax
() {}
28
29
typedef
enum
{
30
DES3_CIPHER
,
// Triple DES
31
AES128_CIPHER
,
// CBC AES
32
AES192_CIPHER
,
// ' '
33
AES256_CIPHER
// ' '
34
} CipherTypes;
35
36
// X.509
37
virtual
bool
ParseCertificateFile(
const
char
*filename ) = 0;
38
virtual
bool
ParseKeyFile(
const
char
*filename ) = 0;
39
40
// PBE
41
virtual
bool
SetPassword(
const
char
* pass,
size_t
passLen) = 0;
42
44
virtual
bool
Encrypt(
char
*output,
size_t
&outlen,
const
char
*array,
size_t
len)
const
= 0;
46
virtual
bool
Decrypt(
char
*output,
size_t
&outlen,
const
char
*array,
size_t
len)
const
= 0;
47
48
virtual
void
SetCipherType(CipherTypes type) = 0;
49
50
virtual
CipherTypes GetCipherType()
const
= 0;
51
52
private
:
53
CryptographicMessageSyntax
(
const
CryptographicMessageSyntax
&);
// Not implemented.
54
void
operator=(
const
CryptographicMessageSyntax
&);
// Not implemented.
55
};
56
57
}
// end namespace gdcm
58
59
#endif //GDCMCRYPTOGRAPHICMESSAGESYNTAX_H
Generated on Thu Oct 17 2013 10:05:56 for GDCM by
1.8.4