OpenAgentID documentation
Source referencesRust module referenceopenagent-crypto-wasm

openagent-crypto-wasm · sha

Declared module signatures, types, configuration, and source documentation.

Source: openagent-sdk/crates/openagent-crypto-wasm/src/sha.rs. SHA-256: 2336d7624b2af848b3f708a8182c87c46da2ec140dd6237e0fa1c1a4807bb622.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

sha::SHA256_LEN

Length of a SHA-256 hash in bytes.

pub const SHA256_LEN: usize;

Source line: 10.

sha::SHA512_LEN

Length of a SHA-512 hash in bytes.

pub const SHA512_LEN: usize;

Source line: 12.

sha::sha256

Computes the SHA-256 hash of data.

pub fn sha256(data: &[u8]) -> [u8; SHA256_LEN];

Source line: 15.

sha::sha512

Computes the SHA-512 hash of data.

pub fn sha512(data: &[u8]) -> [u8; SHA512_LEN];

Source line: 25.

On this page