miniproto.crypto.native.aes_256_cbc_decrypt
miniproto.crypto.native.aes_256_cbc_decrypt
Section titled “miniproto.crypto.native.aes_256_cbc_decrypt”aes_256_cbc_decrypt(ciphertext: BytesLike, key: bytes, iv: bytes) -> bytesDecrypt block-aligned AES-256-CBC bytes without unpadding.
Parameters:
- ciphertext (
BytesLike) – Bytes whose length is a multiple of 16. - key (
bytes) – Exactly 32 bytes of AES-256 key material. - iv (
bytes) – Exactly 16 bytes of initialization value.
Returns:
bytes– Raw plaintext equal in length tociphertext.
Raises:
ValueError– If key/IV lengths or block alignment are invalid.
This operation does not authenticate ciphertext or validate a padding scheme; callers must supply the applicable integrity and decoding checks.