PostLAMessaging.h 595 B

12345678910111213141516171819202122
  1. //
  2. // Created by miti on 2019-12-24.
  3. //
  4. #ifndef VERIFIER_POSTLAMESSAGING_H
  5. #define VERIFIER_POSTLAMESSAGING_H
  6. #include <stdint.h>
  7. //#include "crypto.h"
  8. //#include "ProtobufMessageRW.h"
  9. class PostLAMessaging {
  10. uint8_t key[16];
  11. int fd;
  12. // ProtobufMessageRW protobufReaderWriter;
  13. uint32_t aes_gcm_wrapper(int enc, uint8_t* plaintext, uint32_t plaintext_length, uint8_t* ciphertext, uint32_t* ciphertext_length);
  14. public:
  15. void set_la_symmetric_key(uint8_t* given_key);
  16. void set_fd(int given_fd);
  17. uint32_t send_secure_msg(uint8_t* input, uint32_t input_size);
  18. };
  19. #endif