pub fn decrypt_vcrd_attribute(
attr: &VcrdAttribute,
vpol_key: &[u8],
) -> Result<Vec<u8>, DpapiError>Expand description
AES-CBC-decrypt one VCRD attribute with a VPOL key.
Mirrors impacket’s VAULT example: AES-CBC with attr.iv when a 16-byte IV is
present, else a zero IV; the payload is decrypted without PKCS#7 unpadding (the
schema parse bounds the cleartext, not a pad byte).