Package-level declarations

Types

Link copied to clipboard
class KeyException(message: String, cause: Throwable? = null) : RelaynetException

Exception while generating a cryptographic key.

Properties

Link copied to clipboard

Derive id for Awala node from its private key.

Derive id for Awala node from its public key.

Functions

Link copied to clipboard

Deserialize the EC key pair from a private key serialization.

Link copied to clipboard

Deserialize the RSA key pair from a private key serialization.

Link copied to clipboard
fun generateECDHKeyPair(curve: ECDHCurve = ECDHCurve.P256): KeyPair

Generate an ECDH key pair.

Link copied to clipboard
fun generateRSAKeyPair(modulus: Int = DEFAULT_RSA_KEY_MODULUS): KeyPair

Generate an RSA key pair.