#include <no_encryptor.h>
Public Member Functions | |
void | addFieldsToFileHeader (ros::M_string &) const |
Add encryptor information to bag file header. More... | |
void | decryptChunk (ChunkHeader const &, Buffer &, ChunkedFile &) const |
Decrypt chunk. More... | |
uint32_t | encryptChunk (const uint32_t, const uint64_t, ChunkedFile &) |
Encrypt chunk. More... | |
void | initialize (Bag const &, std::string const &) |
Initialize encryptor. More... | |
NoEncryptor () | |
bool | readEncryptedHeader (boost::function< bool(ros::Header &)>, ros::Header &, Buffer &, ChunkedFile &) |
Read encrypted header from bag file. More... | |
void | readFieldsFromFileHeader (ros::M_string const &) |
Read encryptor information from bag file header. More... | |
void | writeEncryptedHeader (boost::function< void(ros::M_string const &)>, ros::M_string const &, ChunkedFile &) |
Write encrypted header to bag file. More... | |
~NoEncryptor () | |
Public Member Functions inherited from rosbag::EncryptorBase | |
virtual | ~EncryptorBase () |
Additional Inherited Members | |
Protected Member Functions inherited from rosbag::EncryptorBase | |
EncryptorBase () | |
Definition at line 43 of file no_encryptor.h.
|
inline |
Definition at line 46 of file no_encryptor.h.
|
inline |
Definition at line 47 of file no_encryptor.h.
|
inlinevirtual |
Add encryptor information to bag file header.
header_fields | The header fields of the bag |
Called for a bag being written, this method adds encryptor-specific fields to the bag file header. Those fields are used when decrypting the bag. ENCRYPTOR_FIELD_NAME must be specified in the header except for NoEncryptor.
Implements rosbag::EncryptorBase.
Definition at line 52 of file no_encryptor.h.
|
virtual |
Decrypt chunk.
chunk_header | The header of the encrypted chunk |
decrypted_chunk | The buffer where decrypted chunk is written to |
file | The bag file stream from which the encrypted chunk is read |
This method reads the encrypted chunk from file stream, decrypts, and writes it to decrypted_chunk.
Implements rosbag::EncryptorBase.
Definition at line 47 of file no_encryptor.cpp.
|
virtual |
Encrypt chunk.
chunk_size | The byte size of the original chunk |
chunk_data_pos | The start position of the chunk data in bag file stream |
file | The bag file stream |
This method reads the original chunk from [chunk_data_pos, chunk_data_pos+chunk_size), encrypts it, and writes back to the file stream starting at chunk_data_pos.
Implements rosbag::EncryptorBase.
Definition at line 45 of file no_encryptor.cpp.
|
inlinevirtual |
Initialize encryptor.
bag | The Bag instance |
plugin_param | The string parameter used while initializing the encryptor |
This method is called by setEncryptorPlugin, which loads an encryptor plugin.
Implements rosbag::EncryptorBase.
Definition at line 49 of file no_encryptor.h.
|
virtual |
Read encrypted header from bag file.
read_header | The functor reading unencrypted header |
header | The header object read |
header_buffer | The header buffer read |
file | The bag file stream |
This method reads and decrypts encrypted header to output header object (header) and buffer (header_buffer).
Implements rosbag::EncryptorBase.
Definition at line 56 of file no_encryptor.cpp.
|
inlinevirtual |
Read encryptor information from bag file header.
header_fields | The header fields of the bag |
Called for a bag being read, this method reads encryptor-specific fields from the bag file header.
Implements rosbag::EncryptorBase.
Definition at line 53 of file no_encryptor.h.
|
virtual |
Write encrypted header to bag file.
write_header | The functor writing unencrypted header |
header_fields | The header fields to be written |
file | The bag file stream |
This method encrypts given header fields, and writes them to the bag file.
Implements rosbag::EncryptorBase.
Definition at line 52 of file no_encryptor.cpp.