Skip to main content

external_aad

Function external_aad 

Source
pub fn external_aad(bind: &Binding<'_>) -> Result<Vec<u8>, CratestackError>
Expand description

Encode the external AAD for bind: the bytes that go into the Sig_structure / MAC_structure as external_aad. Fails with CratestackError::Internal (misuse) for an empty audience.

Public so other language bindings and the shared vectors can check their own encoding against this one.