Crate aster_forge_crypto

Crate aster_forge_crypto 

Source
Expand description

Shared cryptographic helpers for Aster services.

The crate exposes password hashing, digest utilities, and a versioned authenticated secret envelope shared by Aster products. It keeps the error surface narrow so services can map cryptographic failures into their own API or domain errors without depending on implementation-specific error types.

Re-exports§

pub use hash::PasswordHashPolicy;
pub use hash::PasswordHashVerification;
pub use hash::PasswordHashVerificationLimits;
pub use hash::PasswordHashWorkFactor;
pub use hash::bytes_to_hex;
pub use hash::hash_password;
pub use hash::hash_password_with_policy;
pub use hash::hmac_sha256_hex;
pub use hash::new_sha256;
pub use hash::sha256_digest_to_hex;
pub use hash::sha256_hex;
pub use hash::verify_password;
pub use hash::verify_password_with_policy;
pub use secret_envelope::decrypt_secret;
pub use secret_envelope::encrypt_secret;

Modules§

hash
Password hashing, keyed authentication, and digest helpers.
secret_envelope
Versioned authenticated encryption for product-owned persisted secrets.

Enums§

CryptoError
Errors produced by cryptographic helper functions.

Type Aliases§

Result
Result type returned by aster_forge_crypto helpers.