Function canonicalAad

  • Canonical AAD (JCS, RFC 8785) — the anti-frankenstein binding. Every contextual field of the envelope goes in here, so on open the AAD is re-derived from the struct fields and compared: swap any of them and decryption fails. Mirrors canonical_aad in sealed_field.rs.

    Parameters

    • fieldSchema: string
    • alg: string
    • dfid: string
    • eventId: string
    • fieldPath: string
    • contentType: string
    • commitment: string

    Returns string