## Uses of Class
net.i2p.crypto.KeyPair

- Packages that use KeyPair
  Package | Description
  --- | ---
  net.i2p.crypto | Core cryptographic primitives and algorithms used throughout I2P.
  net.i2p.router.crypto.pqc | Post-quantum cryptographic algorithms for I2P.
  net.i2p.router.crypto.ratchet | Implementation of ECIES-X25519-AEAD-Ratchet cryptographic protocol (I2P proposal 144), providing forward secrecy and enhanced security for I2P transport communications.
  net.i2p.router.transport.crypto | Cryptographic operations for I2P transport protocols, including key exchange algorithms, session key management, and transport-layer encryption.

- - ### Uses of KeyPair in net.i2p.crypto

    Methods in net.i2p.crypto that return KeyPair
    Modifier and Type | Method and Description
    --- | ---
    `KeyPair` | KeyGenerator.`generatePKIKeys(EncType type)` Supports EncTypes
    `KeyPair` | KeyFactory.`getKeys()`

  - ### Uses of KeyPair in net.i2p.router.crypto.pqc

    Methods in net.i2p.router.crypto.pqc that return KeyPair
    Modifier and Type | Method and Description
    --- | ---
    `static KeyPair` | MLKEM.`getKeys(EncType type)` Alice side

  - ### Uses of KeyPair in net.i2p.router.crypto.ratchet

    Subclasses of KeyPair in net.i2p.router.crypto.ratchet
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Elg2KeyPair` X25519 key pair with pre-calculated Elligator2-encoded public key

    Methods in net.i2p.router.crypto.ratchet that return KeyPair
    Modifier and Type | Method and Description
    --- | ---
    `KeyPair` | RatchetTagSet.`getNextKeys()` Next Forward KeyPair if applicable (we're running low).

  - ### Uses of KeyPair in net.i2p.router.transport.crypto

    Methods in net.i2p.router.transport.crypto that return KeyPair
    Modifier and Type | Method and Description
    --- | ---
    `KeyPair` | X25519KeyFactory.`getKeys()` Pulls a prebuilt keypair from the queue, or if not available, construct a new one.

    Methods in net.i2p.router.transport.crypto with parameters of type KeyPair
    Modifier and Type | Method and Description
    --- | ---
    `void` | X25519KeyFactory.`returnUnused(KeyPair kp)` Return an unused DH key builder to be put back onto the queue for reuse.