Skip to main content

decrypt_payload

Function decrypt_payload 

Source
pub fn decrypt_payload(
    header: &FixedHeader,
    payload_key: &SecretKey,
    ciphertext: &[u8],
    index: Option<&[CompressionIndexEntry]>,
) -> Result<Vec<u8>>
Expand description

解密整个载荷。

index 在压缩模式下必须提供(规范要求压缩文件必带 CRITICAL 索引 TLV)。

§Errors