GDCM  2.4.5
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 
23 {
24 public:
26 
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
Definition: gdcmCryptographicMessageSyntax.h:30
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Definition: gdcmCryptographicMessageSyntax.h:31
Definition: gdcmCryptographicMessageSyntax.h:32
virtual ~CryptographicMessageSyntax()
Definition: gdcmCryptographicMessageSyntax.h:27
Definition: gdcmCryptographicMessageSyntax.h:22
CryptographicMessageSyntax()
Definition: gdcmCryptographicMessageSyntax.h:25
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:22 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo