MADARA  3.2.3
AESBufferFilter.h
Go to the documentation of this file.
1 
2 
3 #ifndef _MADARA_FILTERS_SSL_AES_H_
4 #define _MADARA_FILTERS_SSL_AES_H_
5 
13 #ifdef _USE_SSL_
14 
15 #include <string>
16 
17 #include "madara/MadaraExport.h"
19 #include "../BufferFilter.h"
20 
21 namespace madara
22 {
23  namespace filters
24  {
29  class MADARA_EXPORT AESBufferFilter : public BufferFilter
30  {
31  public:
35  AESBufferFilter ();
36 
41  AESBufferFilter (const AESBufferFilter & input);
42 
48  AESBufferFilter (unsigned char * key, int key_length);
49 
53  virtual ~AESBufferFilter ();
54 
60  int generate_key (const std::string & password);
61 
69  virtual int encode (unsigned char * source, int size, int max_size) const;
70 
78  virtual int decode (unsigned char * source, int size, int max_size) const;
79 
80  private:
81 
84 
87  };
88  }
89 }
90 
91 #endif // _USE_SSL_
92 
93 #endif // _MADARA_FILTERS_SSL_AES_H_
utility::ScopedArray< unsigned char > key_
the user&#39;s cypher key
static struct madara::knowledge::tags::string_t string
Copyright (c) 2015 Carnegie Mellon University.
Abstract base class for implementing buffer filters via a functor interface.
Definition: BufferFilter.h:26
utility::ScopedArray< unsigned char > iv_
initialization vector
Encrypts a buffer with 256 bit AES via OpenSSL.