Decrypts an encrypted message and returns the raw Uint8Array.
Decrypts an encrypted message and returns the plaintext as a UTF-8 string.
Returns the public key associated with this decryption instance.
This can be used to construct a PkEncryption object to encrypt a
message for this PkDecryption object.
Returns the secret key associated with this PkDecryption instance.
StaticfromCreates a PkDecryption instance from a secret key.
Creates a new
PkDecryptioninstance with a newly generated key pair.