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

fun decrypt(encryptedContent: Bytes, key: Bytes, data: Bytes): Bytes

AES128GCM decryption function

encrypt

fun encrypt(key: Bytes, nonce: Bytes, message: Bytes, data: Bytes): Bytes

AES128GCM encryption function