PostLAProtobufNativeTransforms.h 1.2 KB

12345678910111213141516171819202122232425
  1. //
  2. // Created by miti on 27/07/19.
  3. //
  4. #ifndef DECRYPTORAPP_POSTLAPROTOBUFNATIVETRANSFORMS_H
  5. #define DECRYPTORAPP_POSTLAPROTOBUFNATIVETRANSFORMS_H
  6. #include "PostLAMessages.pb.h"
  7. namespace PostLAProtobufNativeTransforms {
  8. void get_lengths_for_protobuf_serialized_array(extension_to_decryptor_enclosed_msg &protobuf_ext_to_decryptor,
  9. uint32_t *op_ciphertext_length,
  10. uint32_t *op_number_of_ciphertext_fields);
  11. void create_array_from_protobuf(extension_to_decryptor_enclosed_msg &protobuf_ext_to_decryptor,
  12. unsigned char* double_ciphertext_client_data,
  13. uint32_t* sizes_array,
  14. uint32_t* sizes_array_length);
  15. void create_protobuf_from_array( unsigned char* ciphertext_client_data, uint32_t* sizes_array,
  16. uint32_t sizes_array_length,
  17. extension_to_decryptor_enclosed_msg protobuf_extension_decryptor_msg);
  18. };
  19. #endif //DECRYPTORAPP_POSTLAPROTOBUFNATIVETRANSFORMS_H