Crypto KMS
    Preparing search index...

    Function canonicalContext

    • Encode an encryption context independently of its key order.

      Entries are sorted by key (UTF-16 code-unit order) and serialised as a JSON array of [key, value] pairs. An absent or empty context encodes to zero bytes. Non-string values are rejected rather than coerced.

      Parameters

      • Optionalcontext: Record<string, string>

      Returns Buffer