encrypt
Encrypts data using the manually specified nonce. Check yourself, before you really, really wreck yourself!
nonce = nonce/IV; NEVER EVER RE-USE THIS!
authenticatedData = Additional Authenticated Data
It is safe to discard the reference to nonce, as it will be added to any SealedBox.Authenticated resulting from an encryption.
Return
KmmResult.success containing a SealedBox.Authenticated if valid parameters were provided or KmmResult.failure in case of invalid parameters (e.g., key or nonce length)
Encrypts data using the manually specified nonce. Check yourself, before you really, really wreck yourself!
nonce = nonce/IV; NEVER EVER RE-USE THIS!
It is safe to discard the reference to nonce, as it will be added to any SealedBox.Authenticated resulting from an encryption.
Return
KmmResult.success containing a SealedBox.Authenticated if valid parameters were provided or KmmResult.failure in case of invalid parameters (e.g., key or nonce length)