Key Exchange Schemes

This module contains base classes for key exchange schemes. The classes defined in this module should not be called directly. It is the responsibility of child classes to implement specific key exchange schemes.

AUTHORS:

  • Vincent Macri (2024-07-30): initial version

class sage.crypto.key_exchange.key_exchange_scheme.KeyExchangeScheme[source]

Bases: SageObject

Abstract base class for key exchange schemes.

Currently experimental and subject to change.

compute_shared_secret(alice_pk, bob_sk)[source]

Compute the shared secret using the given public key and secret keys.

generate_public_key(secret_key)[source]

Generate a public key using the given secret key.

generate_secret_key()[source]

Generate a secret key.

parameters()[source]

Get the parameters for the KeyExchangeScheme instance.