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

SessionKeyGenerator

object SessionKeyGenerator (source)

Generates session keys on handshake, using HKDF key derivation function

Properties

DERIVED_KEY_SIZE

const val DERIVED_KEY_SIZE: Int

Functions

generate

fun generate(srcNodeId: Bytes, destNodeId: Bytes, secret: Bytes, idNonce: Bytes): SessionKey

Executes session keys generation