Expand description
This crate provides the reference implementation of the forensic file format Zff. Zff is a new file format for forensic images, as an alternative to EWF and AFF. Zff is focused on speed and security. If you want to learn more about ZFF, visit https://codeberg.org/zff-team/zff-rs.
Re-exports§
pub use encryption::*;
Modules§
- constants
- This module contains all constants, used in this crate. Module containing all constants used in the zff crate.
- encryption
- Contains various functions, methods and traits to handle encryption in zff. Module for encryption operations in zff.
- footer
- This module contains all footer, could be found in the zff specification (footer version 1 and footer version 2). Module containing all footer types for the zff format.
- header
- This module contains all header, could be found in the zff specification (header version 1 and header version 2). Module containing all header types for the zff format.
- helper
- Contains some little helper functions Module containing helper functions and utilities.
- io
- Contains various functionality to handle zff containers (e.g., create, extend, or read zff containers). Module for I/O operations with zff containers.
- prelude
- Re-exports commonly used types, traits, and constants for convenient access. Prelude module for convenient access to commonly used types and traits.
Structs§
- Chunk
- This struct represents a full Chunk (decrypted and uncompressed) - The raw chunk data, the flags and the size.
- Encoding
Thread Pool Manager - The EncodingThreadPoolManager is used to manage the threads and to ensure that the threads will use the given data in zero-copy way.
- File
Encoder - Encodes a file in a zff container.
- File
MapPosition - References the location of a serialized VirtualFileMap inside a zff segment.
- File
Metadata - The FileMetadata contains the appropriate metadata for a zff logical file or a zff virtual logical file.
- Hash
- structure contains several methods to handle hashing
- Logical
Object Encoder - The LogicalObjectEncoder can be used to encode a logical object.
- Logical
Object Source Filesystem - A LogicalObjectSource implementation to handle files from the filesystem.
- Physical
Object Encoder - The PhysicalObjectEncoder can be used to encode a physical object.
- Read
AtCursor - Segment
- Represents a full Segment
- Signature
- structure contains several methods to handle signing of chunked data.
- Virtual
File Encoder - Encodes the a virtual file.
- Virtual
File Footer Metadata - Metadata extracted from a VirtualFileFooter.
- Virtual
Object Encoder - Encodes a virtual object.
- ZffError
- The main error-type of this crate.
Enums§
- Compression
Algorithm - Defines all compression algorithms, which are implemented in zff.
- File
Footer Metadata - A Wrapper for logical objects FileFooter and virtual objects VirtualFileFooterMetadata.
- File
Type Encoding Information - This enum contains the information, which are needed to encode the different file types.
- Hash
Type - Defines all hashing algorithms, which are implemented in zff.
- Object
Encoder - An encoder for each object.
- Platform
String - Represents a platform-native string in an interoperable on-disk form.
- Special
File Encoding Information - This enum contains the information, which are needed to encode the different special file types.
- Virtual
File Content - Describes how a virtual file is represented inside a VirtualFileFooterMetadata.
- ZffError
Kind - Contains the variants/kinds of errors, which could be find in this crate.
Traits§
- Encryption
- trait to implement the zff encryption for the appropriate type.
- Header
Coding - The
HeaderCodingtrait specifies an interface for the common header methods and the encoding and decoding methods. - Header
Encryption - Trait which provides methods to encrypt a header.
- Logical
Object Source - Trait for abstracting different file input sources.
- ReadAt
- Trait for types that support reading at arbitrary offsets.
- Read
AtFile - Trait similar to ReadAt but for underlying files.
- Value
Decoder - decoder methods for values (and primitive types). This is an extension trait.
- Value
Encoder - encoder methods for values (and primitive types). This is an extension trait.
- Virtual
Object Source - Trait for abstracting different file input sources for VirtualObjectSource.
Functions§
- decompress_
buffer - Decompresses a buffer with the given CompressionAlgorithm.
- decompress_
reader - Decompresses a reader with the given CompressionAlgorithm.
- file_
extension_ next_ value - Returns the next file extension value.
- file_
extension_ previous_ value - Returns the previous file extension value.
Type Aliases§
- Result
- Result for std::result::Result<T, ZffError>.