35 #ifndef ROSBAG_ENCRYPTION_H 36 #define ROSBAG_ENCRYPTION_H 47 #include <boost/function.hpp> 69 virtual void initialize(
Bag const& bag, std::string
const& plugin_param) = 0;
ChunkedFile reads and writes files which contain interleaved chunks of compressed and uncompressed da...
virtual uint32_t encryptChunk(const uint32_t chunk_size, const uint64_t chunk_data_pos, ChunkedFile &file)=0
Encrypt chunk.
virtual void decryptChunk(ChunkHeader const &chunk_header, Buffer &decrypted_chunk, ChunkedFile &file) const =0
Decrypt chunk.
virtual bool readEncryptedHeader(boost::function< bool(ros::Header &)> read_header, ros::Header &header, Buffer &header_buffer, ChunkedFile &file)=0
Read encrypted header from bag file.
virtual void initialize(Bag const &bag, std::string const &plugin_param)=0
Initialize encryptor.
std::map< std::string, std::string > M_string
virtual void writeEncryptedHeader(boost::function< void(ros::M_string const &)> write_header, ros::M_string const &header_fields, ChunkedFile &file)=0
Write encrypted header to bag file.
virtual void addFieldsToFileHeader(ros::M_string &header_fields) const =0
Add encryptor information to bag file header.
virtual void readFieldsFromFileHeader(ros::M_string const &header_fields)=0
Read encryptor information from bag file header.