Kem

data class Kem(val algorithm: KemAlgorithm) : KeyExchangeAlgorithm(source)

A key-encapsulation mechanism (draft-ietf-lake-pqsuites §3): G_X is the encapsulation key, G_Y the ciphertext, with the lengths of draft-ietf-lake-pqsuites Table 1.

Constructors

Link copied to clipboard
constructor(algorithm: KemAlgorithm)

Properties

Link copied to clipboard
Link copied to clipboard
open override val ephemeralKeyType: KeyType

The type of the ephemeral key pair the Initiator generates for G_X.

Link copied to clipboard
open override val initiatorShareLength: Int

Length of G_X in message_1, in bytes.

Link copied to clipboard
open override val responderShareLength: Int

Length of G_Y at the start of G_Y_CIPHERTEXT_2 in message_2, in bytes.

Link copied to clipboard

Whether the algorithm is a Diffie-Hellman function that static-DH authentication (methods 1–3) can use: the "Supports DH/NIKE" column that draft-ietf-lake-pqsuites §6.4 adds to the registry.

Functions

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