Skip to main content

build_payload_aad

Function build_payload_aad 

Source
pub fn build_payload_aad(intent_id: &str, scope: &str) -> Vec<u8> ⓘ
Expand description

Build length-prefixed AAD for payload encryption.

Format: u32_le(len(intent_id)) || intent_id || u32_le(len(scope)) || scope. Length prefixing prevents ambiguity where different intent_id/scope splits produce the same concatenated bytes.