tuweni / org.apache.tuweni.crypto.sodium / KeyExchange / Seed

Seed

class Seed (source)

A KeyExchange key pair seed.

Functions

bytes

fun bytes(): Bytes

bytesArray

fun bytesArray(): ByteArray

equals

fun equals(other: Any?): Boolean

fromBytes

static fun fromBytes(bytes: Bytes): Seed
static fun fromBytes(bytes: ByteArray): Seed

Create a Seed from an array of bytes.

The byte array must be of length #length().

hashCode

fun hashCode(): Int

length

static fun length(): Int

Obtain the length of the seed in bytes (32).

random

static fun random(): Seed

Generate a new Seed using a random generator.