pluto  1
Small utility library for UUIDs, SHA1, and Encryption
TeaCrypter.h
Go to the documentation of this file.
1 #pragma once
2 
12 #include <stdint.h>
13 
14  namespace plt {
15 
22  class TeaCrypter {
23 
24  public:
25 
37  TeaCrypter(void *ptr, unsigned int sizeof_data, uint32_t *key);
38 
44  void EncryptData();
45 
51  void DecryptData();
52 
59  void *GetData();
60 
67  bool GetMemoryErr() const;
68 
69  ~TeaCrypter();
70  private:
71  uint32_t* inputData;
72  uint32_t* key;
73  unsigned int sizeof_inputData;
74  unsigned int sizeof_keptData;
75  bool memoryErr;
76 
77  };
78  }
Do not use these functions.
Definition: FileDataReader.h:16
void EncryptData()
EncryptData - invoke the encryption of the data.
bool GetMemoryErr() const
GetMemoryErr - Retrieve errors by TeaCrypter.
void DecryptData()
DecryptData - invoke the decryption of the data.
TeaCrypter(void *ptr, unsigned int sizeof_data, uint32_t *key)
Default constructor for TEA crypter.
void * GetData()
GetData - Pull the data that is going to be encrypted.
Encryption functionality of Pluto.
Definition: TeaCrypter.h:22