Package-level declarations
Functions
Attempts to decrypt this ciphertext (which may also hold an IV/nonce, and in case of an authenticated ciphertext, authenticated data and auth tag) using the provided key. This is the generic, untyped decryption function for convenience. Compared to its narrower-typed cousins is possible to mismatch the characteristics of key and SealedBox.
Attempts to decrypt this ciphertext (which may also hold an IV/nonce) using the provided key. This constrains the key's characteristics to the characteristics of the SealedBox to decrypt. It does not, however, prevent mixing up different encryption algorithms with the same characteristics. I.e., it is possible to feed a AES.ECB key into a AES.CBC. In such cases, this function will immediately return a KmmResult.failure.
Directly decrypts raw encryptedData.
Attempts to decrypt this ciphertext (which may also hold an IV/nonce) using the provided key. Do provide authenticatedData if required, or else decryption will fail! This is the generic, untyped decryption function for convenience. Compared to its narrower-typed cousins is possible to mismatch the characteristics of key and SealedBox.
Directly decrypts raw encryptedData, feeding nonce into the decryption process.
Directly decrypts raw encryptedData, feeding authTag, and authenticatedData into the decryption process.
Directly decrypts raw encryptedData, feeding nonce, authTag, and authenticatedData into the decryption process.
Encrypts data and automagically generates a fresh nonce/IV if required by the cipher.