Struct self_encryption::ChunkDetails [] [src]

pub struct ChunkDetails {
    pub chunk_num: u32,
    pub hash: Vec<u8>,
    pub pre_hash: Vec<u8>,
    pub source_size: u64,
}

Holds pre- and post-encryption hashes as well as the original (pre-compression) size for a given chunk.

Fields

Index number (starts at 0)

Post-encryption hash of chunk

Pre-encryption hash of chunk

Size before encryption (compression alters this as well as any possible padding depending on cipher used)

Methods

impl ChunkDetails
[src]

[src]

Holds information required for successful recovery of a chunk, as well as for the encryption/decryption of it's two immediate successors, modulo the number of chunks in the corresponding DataMap.

Trait Implementations

impl PartialEq for ChunkDetails
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ChunkDetails
[src]

impl PartialOrd for ChunkDetails
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for ChunkDetails
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for ChunkDetails
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ChunkDetails
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for ChunkDetails
[src]

[src]

Formats the value using the given formatter.