Exports a secret using a variable-length pseudorandom function.
If the error occurred, throws ExportError
.
An exporter context string as bytes. The maximum length is 128 bytes.
A desired length in bytes of the output secret.
A secret string as bytes.
Decrypts data.
If the error occurred, throws OpenError
.
An encrypted text as bytes to be decrypted.
Optional
aad: ArrayBufferAdditional authenticated data as bytes fed by an application.
A decrypted plain text as bytes.
Encrypts data.
If the error occurred, throws SealError
| MessageLimitReachedError
.
A plain text as bytes to be encrypted.
Optional
aad: ArrayBufferAdditional authenticated data as bytes fed by an application.
A cipher text as bytes.
The encryption context interface for a recipient and a sender.