fun decrypt(privateKey: Bytes, nonce: Bytes, encoded: Bytes, additionalAuthenticatedData: Bytes): Bytes
(source)
AES128GCM decryption function
privateKey
- the key to use for decryption
nonce
- the nonce of the encrypted data
encoded
- the encrypted content
additionalAuthenticatedData
- the AAD that should be decrypted alongside
Return
the decrypted data