The MIME protocol used for detached signatures.
The MIME protocol used for encrypted content.
The MIME protocol used for key exchange.
Whether MultipartSigned should prepare (7bit/CRLF) the entity before signing.
The micalg parameter name for the digest algorithm (RFC 3156 §5).
The digest algorithm.
Resolve the digest actually used for signing. OpenPGP.js (v6) refuses to sign with legacy digests (MD5/SHA-1/RIPEMD-160), so those are upgraded to SHA-256 — including the SHA-1 default inherited from the message-level API.
Whether this context supports the given MIME protocol.
The protocol content-type (e.g. application/pgp-signature).
Import public and/or secret keys from armored text or binary key data.
Add a public key to the keyring.
Add a secret key (and its public half) to the keyring.
Get the public keys for the given recipient mailboxes (throws if any is missing).
Get the (unlocked) signing key for the given mailbox.
Produce an ASCII-armored detached signature over content.
Sign content with the signer mailbox and return the detached signature as an
application/pgp-signature MIME part (used by MultipartSigned).
Verify an ASCII-armored detached signature over content.
Verify a detached signature and return the results as a DigitalSignatureCollection (the shape MultipartSigned expects).
Produce an ASCII-armored encrypted message to the given recipients.
Optionalcipher: EncryptionAlgorithmSign and encrypt content in one pass.
Optionalcipher: EncryptionAlgorithmDecrypt an ASCII-armored message, verifying any embedded signatures.
An in-memory OpenPGP (PGP/MIME) cryptography context.