X25519

An X25519, utilized by tor for Version 3 Client Authentication.

Types

Link copied to clipboard

A 32 byte x25519 private key.

Link copied to clipboard

A 32 byte x25519 public key.

Functions

Link copied to clipboard
open override fun algorithm(): String

x25519

Link copied to clipboard

Generates a new x25519 key pair, suitable for use with v3 client authentication. Utilizes CryptoRand.Default as the source for procuring cryptographically secure random data.

@JvmStatic
@JvmOverloads
fun generateKeyPair(seed: ByteArray, offset: Int, clear: Boolean = true): Pair<X25519.PublicKey, X25519.PrivateKey>

Generates a new x25519 key pair, suitable for use with v3 client authentication. Utilizes 32-bytes from provided seed, starting at index offset.