miniproto_native::crypto::aes_256_ige_encrypt
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/crypto.rs - Python exposure:
miniproto._native.aes_256_ige_encrypt(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn aes_256_ige_encrypt(py: _, plaintext: _, key: _, iv: _) -> _Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large encryption work.plaintext: AES-block-aligned bytes to encrypt.key: The 32-byte AES-256 key.iv: The 32-byte AES-IGE initialization vector.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”aes_256_ige_encrypt
Section titled “aes_256_ige_encrypt”fn aes_256_ige_encrypt(py: Python<'_>, plaintext: Vec<u8>, key: Vec<u8>, iv: Vec<u8>) -> PyResult<Vec<u8>>Defined in rust/miniproto/src/crypto.rs:265-275
Encrypts block-aligned bytes with Python aes_256_ige_encrypt.
Requires a 32-byte key and IV; returns ValueError for invalid lengths and releases the GIL
for large plaintexts.
Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large encryption work.plaintext: AES-block-aligned bytes to encrypt.key: The 32-byte AES-256 key.iv: The 32-byte AES-IGE initialization vector.