ED25519_V3

An ED25519_V3, utilized by tor for Version 3 Hidden Services.

Types

Link copied to clipboard

An ed25519 private key in its 64 byte extended key format (as tor expects).

Link copied to clipboard

A 32 byte ed25519 public key.

Functions

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

ED25519-V3

Link copied to clipboard

Generates a new ed25519 key pair, suitable for use with tor hidden services. Utilizes CryptoRand.Default as the source for procuring cryptographically secure random data.

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

Generates a new ed25519 key pair, suitable for use with tor hidden services. Utilizes 32-bytes from provided seed, starting at index offset.