Result

class Result(val tag: ByteArray, val key: ByteArray)

Encapsulates the result of an HMAC-SHA256 operation, containing the tag and the key used.

Parameters

tag

The generated HMAC tag as a ByteArray.

key

The key used for HMAC computation as a ByteArray.

Constructors

Link copied to clipboard
constructor(tag: ByteArray, key: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this Result with another object for equality. Two Result objects are equal if their tags and keys are identical.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this Result based on its tag and key.