Packages that use KeyPair
Package
Description
Core cryptographic primitives used throughout I2P: symmetric ciphers (AES, ChaCha20), hashes (SHA-1, SHA-256, SHA-384, SHA-512), HMAC and HKDF key derivation, the ElGamal and DSA/EdDSA/RedDSA engines, key and certificate utilities, and the entropy harvester.
Post-quantum hybrid key encapsulation built on the bundled Bouncy Castle ML-KEM primitives.
The Double Ratchet with X25519 key agreement and ECIES hybrid encryption, used by the NTCP2 and SSU transports for session encryption.
Transport-layer key agreement: the X25519 key factory used by the NTCP2 and SSU2 session handshakes for peer authentication and session encryption.
Uses of KeyPair in net.i2p.crypto
Methods in net.i2p.crypto that return KeyPairModifier and TypeMethodDescriptionKeyGenerator.generatePKIKeys(EncType type) Supports EncTypes.KeyFactory.getKeys()The keys for this destination.Uses of KeyPair in net.i2p.router.crypto.pqc
Fields in net.i2p.router.crypto.pqc with type parameters of type KeyPairModifier and TypeFieldDescriptionprivate final LinkedBlockingQueue<KeyPair> MLKEMKeyFactory._keysQueue of the precalculated key pairs.Methods in net.i2p.router.crypto.pqc that return KeyPairModifier and TypeMethodDescriptionstatic KeyPairAlice side, key generation.MLKEM.MLKEMFactory.getKeys()MLKEMKeyFactory.getKeys()Pulls a prebuilt keypair from the queue, or if not available, construct a new one.private KeyPairMLKEMKeyFactory.precalc()Generates one key pair.Methods in net.i2p.router.crypto.pqc with parameters of type KeyPairModifier and TypeMethodDescriptionprivate final booleanAdds a precomputed key pair to the pool.voidMLKEMKeyFactory.returnUnused(KeyPair kp) Return an unused key pair to be put back onto the queue for reuse.Uses of KeyPair in net.i2p.router.crypto.ratchet
Subclasses of KeyPair in net.i2p.router.crypto.ratchetModifier and TypeClassDescriptionclassX25519 key pair with pre-calculated Elligator2-encoded public key.Fields in net.i2p.router.crypto.ratchet declared as KeyPairModifier and TypeFieldDescriptionprivate KeyPairRatchetSKM.OutboundSession._myIBKeysOur current inbound ratchet key pair.private KeyPairRatchetSKM.OutboundSession._myOBKeysOur current outbound ratchet key pair.private KeyPairRatchetTagSet._nextKeysOur next ratchet key pair.Methods in net.i2p.router.crypto.ratchet that return KeyPairModifier and TypeMethodDescriptionRatchetTagSet.getNextKeys()Next Forward KeyPair if applicable (we're running low).(package private) static KeyPairRatchetTagSet.nextKeys(I2PAppContext ctx) A fresh XDHE key pair to carry in the next forward key.Uses of KeyPair in net.i2p.router.transport.crypto
Fields in net.i2p.router.transport.crypto with type parameters of type KeyPairModifier and TypeFieldDescriptionprivate final LinkedBlockingQueue<KeyPair> X25519KeyFactory._keysThe precalculated key pairs.Methods in net.i2p.router.transport.crypto that return KeyPairModifier and TypeMethodDescriptionX25519KeyFactory.getKeys()Pulls a prebuilt keypair from the queue, or if not available, construct a new one.private KeyPairX25519KeyFactory.precalc()Calculates one key pair.Methods in net.i2p.router.transport.crypto with parameters of type KeyPairModifier and TypeMethodDescriptionprivate final booleanAdds a precomputed key pair to the pool.voidX25519KeyFactory.returnUnused(KeyPair kp) Return an unused DH key builder to be put back onto the queue for reuse.