![]()  | 
  
    Disk ARchive 2.8.1
    
   Full featured and portable backup and archiving tool 
   | 
 
manages the archive header and trailer More...
#include <header_version.hpp>
 Collaboration diagram for libdar::header_version:Public Member Functions | |
| header_version (const header_version &ref) | |
| header_version (header_version &&ref) noexcept | |
| header_version & | operator= (const header_version &ref) | 
| header_version & | operator= (header_version &&ref) noexcept | 
| void | read (generic_file &f, user_interaction &dialog, bool lax_mode) | 
| read the header or trailer from the archive  | |
| void | write (generic_file &f) const | 
| write down the object to the archive (as header if wrote at the beginning of the archive, as trailer is at the end)  | |
| void | set_edition (const archive_version &ed) | 
| void | set_compression_algo (const compression &zip) | 
| void | set_command_line (const std::string &line) | 
| void | set_initial_offset (const infinint &offset) | 
| void | set_sym_crypto_algo (const crypto_algo &algo) | 
| void | set_crypted_key (memory_file *key) | 
| the object pointed to by key passes to the responsibility of this header_version object  More... | |
| void | clear_crypted_key () | 
| void | set_slice_layout (slice_layout *layout) | 
| the object pointed to by layout is passed under the responsibility of this header_version object  More... | |
| void | clear_slice_layout () | 
| void | set_tape_marks (bool presence) | 
| void | set_signed (bool is_signed) | 
| void | set_salt (const std::string &arg) | 
| void | set_iteration_count (const infinint &arg) | 
| void | set_kdf_hash (hash_algo algo) | 
| void | set_compression_block_size (const infinint &bs) | 
| const archive_version & | get_edition () const | 
| compression | get_compression_algo () const | 
| const std::string & | get_command_line () const | 
| const infinint & | get_initial_offset () const | 
| bool | is_ciphered () const | 
| bool | is_signed () const | 
| crypto_algo | get_sym_crypto_algo () const | 
| std::string | get_sym_crypto_name () const | 
| std::string | get_asym_crypto_name () const | 
| memory_file * | get_crypted_key () const | 
| const slice_layout * | get_slice_layout () const | 
| bool | get_tape_marks () const | 
| const std::string & | get_salt () const | 
| const infinint & | get_iteration_count () const | 
| hash_algo | get_kdf_hash () const | 
| const infinint & | get_compression_block_size () const | 
| void | display (user_interaction &dialg) const | 
| void | clear () | 
Private Member Functions | |
| void | nullifyptr () noexcept | 
| void | copy_from (const header_version &ref) | 
| void | move_from (header_version &&ref) noexcept | 
| void | detruit () | 
Private Attributes | |
| archive_version | edition | 
| archive format  More... | |
| compression | algo_zip | 
| compression algorithm used  More... | |
| std::string | cmd_line | 
| used long ago to store cmd_line, then abandonned, then recycled as a user comment field  More... | |
| infinint | initial_offset | 
| defines at which offset starts the archive (passed the archive header), this field is obiously only used in the trailer not in the header  More... | |
| crypto_algo | sym | 
| strong encryption algorithm used for symmetrical encryption  More... | |
| memory_file * | crypted_key | 
| optional field containing the asymmetrically ciphered key used for strong encryption ciphering  More... | |
| slice_layout * | ref_layout | 
| optional field used in isolated catalogues to record the slicing layout of their archive of reference  More... | |
| bool | has_tape_marks | 
| whether the archive contains tape marks aka escape marks aka sequence marks  More... | |
| bool | ciphered | 
| whether the archive is ciphered, even if we do not know its crypto algorithm (old archives)  More... | |
| bool | arch_signed | 
| whether the archive is signed  More... | |
| bool | has_kdf_params | 
| has salt/ineration/kdf_hash fields valid  More... | |
| std::string | salt | 
| used for key derivation  More... | |
| infinint | iteration_count | 
| used for key derivation  More... | |
| hash_algo | kdf_hash | 
| used for key derivation  More... | |
| infinint | compr_bs | 
| the compression block size (0 for legacy compression mode)  More... | |
Static Private Attributes | |
| static constexpr U_I | PRE_FORMAT_10_ITERATION = 2000 | 
| fixed value used for key derivation before archive format 10  More... | |
manages the archive header and trailer
Definition at line 47 of file header_version.hpp.