tuweni / org.apache.tuweni.crypto.sodium / Auth / auth

auth

static fun auth(input: Bytes!, key: Key!): Bytes! (source)

Create an authentication tag for a given input.

Parameters

input - Bytes!: The input to generate an authentication tag for.

key - Key!: A confidential key.

Return
Bytes!: The authentication tag.

static fun auth(input: ByteArray!, key: Key!): ByteArray! (source)

Create an authentication tag for a given input.

Parameters

input - ByteArray!: The input to generate an authentication tag for.

key - Key!: A confidential key.

Return
ByteArray!: The authentication tag.