# Packages

No description provided by the author
No description provided by the author

# Functions

Deserialize deserializes the given serialized JWE into a JSONWebEncryption object.
IsCompactJWS checks weather input is a compact JWS (based on https://tools.ietf.org/html/rfc7516#section-9).
NewCompositeAlgSigVerifier creates a new CompositeAlgSigVerifier.
NewJWEDecrypt creates a new JWEDecrypt instance to parse and decrypt a JWE message for a given recipient store is needed for Authcrypt only (to fetch sender's pre agreed upon public key), it is not needed for Anoncrypt.
NewJWEEncrypt creates a new JWEEncrypt instance to build JWE with recipientsPubKeys senderKID and senderKH are used for Authcrypt (to authenticate the sender), if not set JWEEncrypt assumes Anoncrypt.
NewJWS creates JSON Web Signature.
ParseJWS parses serialized JWS.
WithJWSDetachedPayload option is for definition of JWS detached payload.

# Constants

A128CBCHS256 for A128CBC-HS256 (AES128-CBC+HMAC-SHA256) content encryption.
A128CBCHS256ALG represents AES_128_CBC_HMAC_SHA_256 encryption algorithm value.
A192CBCHS384 for A192CBC-HS384 (AES192-CBC+HMAC-SHA384) content encryption.
A192CBCHS384ALG represents AES_192_CBC_HMAC_SHA_384 encryption algorithm value.
A256CBCHS384 for A256CBC-HS384 (AES256-CBC+HMAC-SHA384) content encryption.
A256CBCHS384ALG represents AES_256_CBC_HMAC_SHA_384 encryption algorithm value (not defined in JWA spec above).
A256CBCHS512 for A256CBC-HS512 (AES256-CBC+HMAC-SHA512) content encryption.
A256CBCHS512ALG represents AES_256_CBC_HMAC_SHA_512 encryption algorithm value.
A256GCM for AES256GCM content encryption.
A256GCMALG is the default content encryption algorithm value as per the JWA specification: https://tools.ietf.org/html/rfc7518#section-5.1.
string.
bool.
string.
array.
string.
JSON.
JSON.
string.
string.
string.
string.
HeaderX509CertificateChain contains the X.509 public key certificate or certificate chain: For JWS: corresponding to the key used to digitally sign the JWS.
HeaderX509CertificateDigest (X.509 certificate SHA-1 thumbprint) is a base64url-encoded SHA-1 thumbprint (a.k.a.
string.
HeaderX509URL is a URI that refers to a resource for the X.509 public key certificate or certificate chain: For JWS: corresponding to the key used to digitally sign the JWS.
XC20P for XChacha20Poly1305 content encryption.
XC20PALG represents XChacha20Poly1305 content encryption algorithm value.

# Structs

AlgSignatureVerifier defines verifier for particular signature algorithm.
CompositeAlgSigVerifier defines composite signature verifier based on the algorithm taken from JOSE header alg.
JSONWebEncryption represents a JWE as defined in https://tools.ietf.org/html/rfc7516.
JSONWebSignature defines JSON Web Signature (https://tools.ietf.org/html/rfc7515).
JWEDecrypt is responsible for decrypting a JWE message and returns its protected plaintext.
JWEEncrypt is responsible for encrypting a plaintext and its AAD into a protected JWE and decrypting it.
Recipient is a recipient of a JWE including the shared encryption key.
RecipientHeaders are the recipient headers.

# Interfaces

Decrypter interface to Decrypt JWE messages.
Encrypter interface to Encrypt/Decrypt JWE messages.
SignatureVerifier makes verification of JSON Web Signature.
Signer defines JWS Signer interface.

# Type aliases

DefaultSigningInputVerifier is a SignatureVerifier that generates the signing input from the given headers and payload, instead of using the signing input parameter.
EncAlg represents the JWE content encryption algorithm.
Headers represents JOSE headers.
JWSParseOpt is the JWS Parser option.
SignatureVerifierFunc is a function wrapper for SignatureVerifier.