miniproto_native::crypto::xor_bytes
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/crypto.rs - Python exposure:
miniproto._native.xor_bytes(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn xor_bytes(left: &[u8], right: &[u8]) -> _Arguments
Section titled “Arguments”left: First equal-length byte sequence.right: Second equal-length byte sequence.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”xor_bytes
Section titled “xor_bytes”fn xor_bytes(left: &[u8], right: &[u8]) -> PyResult<Vec<u8>>Defined in rust/miniproto/src/crypto.rs:249-251
Returns the bytewise exclusive-or of Python xor_bytes(left, right) inputs.
Returns ValueError unless both inputs have equal length.
Arguments
Section titled “Arguments”left: First equal-length byte sequence.right: Second equal-length byte sequence.