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

AES128GCM

object AES128GCM (source)

Util dedicated for AES-GCM encoding with key size equal 16 bytes

Functions

decrypt

AES128GCM decryption function

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

encrypt

AES128GCM encryption function

fun encrypt(privateKey: Bytes, nonce: Bytes, message: Bytes, additionalAuthenticatedData: Bytes): Bytes