tuweni / org.apache.tuweni.devp2p.v5.encrypt / AES128GCM / decrypt

decrypt

fun decrypt(privateKey: Bytes, nonce: Bytes, encoded: Bytes, additionalAuthenticatedData: Bytes): Bytes (source)

AES128GCM decryption function

Parameters

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