MADARA  3.1.8
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/MADARA_export.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_
static constexpr struct madara::knowledge::tags::string_t string
Copyright (c) 2015 Carnegie Mellon University.
This template class provides transparent reference counting of its template parameter T...
Definition: ScopedArray.h:22