iya-sts
    Preparing search index...

    Variable jweRecipientKeyFits

    jweRecipientKeyFits: (alg: any, jwk: any) => boolean = jweRecipientKeyFits

    Type Declaration

      • (alg: any, jwk: any): boolean
      • Tells whether a recipient's published JWK can be encrypted to with an alg.

        Parameters

        • alg: any

          an asymmetric JWE alg

        • jwk: any

          the recipient's public JWK

        Returns boolean

        true when the key's type, curve or AKP alg fits