Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

827 B
Raw Blame
//! Backend-neutral cryptographic building blocks shared by Moli crates.
//!
//! This crate deliberately contains no WebIDL, browser-policy, algorithm-name
//! normalization, WebCrypto key, or JWK semantics. Those belong to the browser-facing
//! owner (`moli-webcrypto` or the renderer subsystem using the primitive).

mod certificate;
mod digest;
mod ed25519;
mod hkdf;
mod legacy;
mod random;

pub use certificate::{CertificateError, CertificateKeyAlgorithm, SelfSignedCertificate};
pub use digest::{DigestAlgorithm, Sha256Context, sha1_digest, sha256_digest, sha256_hex};
pub use ed25519::{Ed25519Error, Ed25519SigningKey};
pub use hkdf::{HkdfError, derive_hkdf_bytes};
pub use legacy::{
    LegacyCryptoError, aes_128_cbc_pkcs7_decrypt, aes_256_gcm_decrypt, derive_pbkdf2_hmac_sha1,
};
pub use random::fill_secure_random;