miniproto_native::crypto::sha256_digest
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/crypto.rs - Python exposure:
miniproto._native.sha256_digest(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn sha256_digest(py: _, data: _) -> _Arguments
Section titled “Arguments”py: The acquired GIL token used to detach a large hash operation.data: Bytes to hash.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”sha256_digest
Section titled “sha256_digest”fn sha256_digest(py: Python<'_>, data: Vec<u8>) -> Vec<u8>Defined in rust/miniproto/src/crypto.rs:114-116
Computes Python sha256_digest(data) and returns the 32-byte SHA-256 digest.
Large inputs are hashed with the GIL released.
Arguments
Section titled “Arguments”py: The acquired GIL token used to detach a large hash operation.data: Bytes to hash.