decryptEasy

open fun decryptEasy(mySecret: CryptoBoxSecretKey, otherPubkey: CryptoBoxPublicKey, encrypted: Array<Byte>): Array<Byte>

Decrypts box produced by `TWCryptoBoxEncryptEasy`. We assume a 24-byte nonce is prepended to the encrypted text in box.

Return

*nullable* pointer to the decrypted message.

Parameters

mySecret

*non-null* pointer to my secret key.

otherPubkey

*non-null* pointer to other's public key.

encrypted

*non-null* pointer to the encrypted message with nonce prepended to it.