@hpke/ohttp
    Preparing search index...

    Function deserializeKeyConfig

    • Deserialize an application/ohttp-keys payload into key configurations.

      The wire format is a sequence of length-prefixed KeyConfig entries:

      KeyConfig { Key Identifier (8), KEM ID (16), Public Key (Npk bytes, determined by KEM), Cipher Suites Length (16), Cipher Suites (variable) { KDF ID (16), AEAD ID (16), } ... }

      Each KeyConfig is prefixed with its 2-byte length.

      Parameters

      • data: Uint8Array

      Returns OhttpKeyConfig[]