pithos_lib 0.6.4

Library and components for encrypting / compressing pithos (.pto) files, including specification
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Crypt4GHError {
    #[error("Unable to parse `{0}` from bytes")]
    FromBytesError(String),
    #[error("Invalid value for spec: `{0}`")]
    InvalidSpec(String),
    #[error("Unable to decrypt: `{0}`")]
    DecryptionError(String),
    #[error("decryption failed")]
    DecryptionFailed,
    #[error("Unable to encrypt: `{0}`")]
    EncryptionError(String),
}