Go to the documentation of this file.
35 #ifndef ROSBAG_AES_ENCRYPTION_H
36 #define ROSBAG_AES_ENCRYPTION_H
41 #include <openssl/aes.h>
55 void initialize(
Bag const& bag, std::string
const& gpg_key_user);
ChunkedFile reads and writes files which contain interleaved chunks of compressed and uncompressed da...
void decryptChunk(ChunkHeader const &chunk_header, Buffer &decrypted_chunk, ChunkedFile &file) const
Decrypt chunk.
static const std::string GPG_USER_FIELD_NAME
uint32_t encryptChunk(const uint32_t chunk_size, const uint64_t chunk_data_pos, ChunkedFile &file)
Encrypt chunk.
static const std::string ENCRYPTED_KEY_FIELD_NAME
void initialize(Bag const &bag, std::string const &gpg_key_user)
Initialize encryptor.
bool readEncryptedHeader(boost::function< bool(ros::Header &)>, ros::Header &header, Buffer &header_buffer, ChunkedFile &)
Read encrypted header from bag file.
std::basic_string< unsigned char > symmetric_key_
void addFieldsToFileHeader(ros::M_string &header_fields) const
Add encryptor information to bag file header.
std::string gpg_key_user_
void readFieldsFromFileHeader(ros::M_string const &header_fields)
Read encryptor information from bag file header.
std::string encrypted_symmetric_key_
void writeEncryptedHeader(boost::function< void(ros::M_string const &)>, ros::M_string const &header_fields, ChunkedFile &)
Write encrypted header to bag file.
std::map< std::string, std::string > M_string
rosbag_storage
Author(s): Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:52