l1fe-weave-core · crypto
Source declarations, signatures and documentation for crypto.
Reviewed implementation boundary: Some core wrappers derive transport keys from DID strings. Do not infer secret key custody or authenticated peers from a supplied DID string; inspect the chosen wrapper and transport configuration. See /libraries/weave-core/overview.
Source: sigil/weave/libs/weave-core/src/crypto/mod.rs. SHA-256: 29ab5634414d32389b0247f8f9b10b8fa7a640f649c65fb05b5bb95331dd4b31.
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.
crypto::secret_stream
pub mod secret_stream;Source line: 12.
crypto::init
Initialize the crypto subsystem
pub fn init() -> Result<()>;Source line: 17.
crypto::generate_random_bytes
Generate a random 32-byte value (not for keys)
pub fn generate_random_bytes() -> [u8; 32];Source line: 26.
crypto::hash
Hash data using BLAKE3
pub fn hash(data: &[u8]) -> [u8; 32];Source line: 34.
crypto::derive_value
Derive a value from password using Argon2 (not for keys)
pub fn derive_value(password: &[u8], salt: &[u8]) -> Result<[u8; 32]>;Source line: 39.
crypto::generate_nonce
Generate a random nonce
pub fn generate_nonce() -> [u8; 24];Source line: 62.