iya-sts
    Preparing search index...

    Variable decryptJweCompact

    decryptJweCompact: (compact: any, opts: any) => { header: any; plaintext: any } = decryptJweCompact

    Type Declaration

      • (compact: any, opts: any): { header: any; plaintext: any }
      • Decrypts a compact JWE.

        Parameters

        • compact: any

          the compact JWE

        • opts: any

          privateKey (a KeyObject), privateJwk (an ML-KEM or HPKE key, #82) or secret; allowedAlg, allowedEnc, expectedKid, and psk for HPKE mode_psk. An HPKE Integrated JWE carries no enc.

        Returns { header: any; plaintext: any }

        { header, plaintext }

        Error with a sentence a caller can hand to a client