Weave documentation
Filament referencefilament-crypto

filament-crypto · crate

Source declarations, signatures and documentation for crate.

Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.

Source: sigil/weave/filament/filament-crypto/src/lib.rs. SHA-256: 749a98f04ccb5da0e2c571a5e3256fd582e0cc0a72272509da0091fd5b5a6db4.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

encryption

pub mod encryption;

Source line: 46.

fernet

pub mod fernet;

Source line: 47.

hkdf

pub mod hkdf;

Source line: 48.

identity

pub mod identity;

Source line: 49.

primitives

pub mod primitives;

Source line: 50.

pub use encryption::{decrypt, encrypt, EncryptionError};

pub use encryption::{decrypt, encrypt, EncryptionError};

Source line: 52.

pub use fernet::{Fernet, FernetToken};

pub use fernet::{Fernet, FernetToken};

Source line: 53.

pub use identity::{Identity, IdentityError, PublicIdentity};

pub use identity::{Identity, IdentityError, PublicIdentity};

Source line: 54.

pub use primitives::{hmac_sha256, sha256, sha512, verify_hmac_sha256};

pub use primitives::{hmac_sha256, sha256, sha512, verify_hmac_sha256};

Source line: 55.

pub use error::CryptoError;

pub use error::CryptoError;

Source line: 58.

error::CryptoError

#[derive(Error, Debug)]
pub enum CryptoError {
        /// Identity-related error
        #[error("identity error: {0}")]
        Identity(#[from] crate::identity::IdentityError),

        /// Encryption/decryption error
        #[error("encryption error: {0}")]
        Encryption(#[from] crate::encryption::EncryptionError),

        /// Fernet token error
        #[error("fernet error: {0}")]
        Fernet(#[from] crate::fernet::FernetError),

        /// HKDF error
        #[error("hkdf error: {0}")]
        Hkdf(String),

        /// Generic cryptographic failure
        #[error("cryptographic operation failed: {0}")]
        General(String),
    }

Source line: 65.

On this page