miniproto_native::crypto::aes_256_ige_decrypt
Provenance
Section titled “Provenance”- Rust visibility:
restricted - Source:
rust/miniproto/src/crypto.rs - Python exposure:
miniproto._native.aes_256_ige_decrypt(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn aes_256_ige_decrypt(py: _, ciphertext: _, key: _, iv: _) -> _Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large decryption work.ciphertext: AES-block-aligned bytes to decrypt.key: The 32-byte AES-256 key.iv: The 32-byte AES-IGE initialization vector.
aes_256_ige_decrypt
Section titled “aes_256_ige_decrypt”fn aes_256_ige_decrypt(py: Python<'_>, ciphertext: std::borrow::Cow<'_, [u8]>, key: std::borrow::Cow<'_, [u8]>, iv: std::borrow::Cow<'_, [u8]>) -> PyResult<Vec<u8>>Defined in rust/miniproto/src/crypto.rs:293-303
Decrypts block-aligned bytes with Python aes_256_ige_decrypt.
Requires a 32-byte key and IV; returns ValueError for invalid lengths and releases the GIL
for large ciphertexts.
Arguments
Section titled “Arguments”py: The acquired GIL token used to detach large decryption work.ciphertext: AES-block-aligned bytes to decrypt.key: The 32-byte AES-256 key.iv: The 32-byte AES-IGE initialization vector.