1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2016-2017 Martijn Rijkeboer <mrr@sru-systems.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use super::comment::Comment;
use super::compression::Compression;
use super::header_hash::HeaderHash;
use super::master_cipher::MasterCipher;
use super::stream_cipher::StreamCipher;
use super::transform_rounds::TransformRounds;
use super::version::Version;
/// Represents the meta data of the database.
#[derive(Clone, Debug, PartialEq)]
pub struct MetaData {
/// Content of the comment header.
pub comment: Option<Comment>,
/// Compression algorithm.
pub compression: Compression,
/// Hash of the header data.
pub header_hash: HeaderHash,
/// Master encryption algorithm.
pub master_cipher: MasterCipher,
/// Stream encryption algorithm (e.g. passwords).
pub stream_cipher: StreamCipher,
/// Number of times the composite key must be transformed.
pub transform_rounds: TransformRounds,
/// Database version.
pub version: Version,
}