Packages that use RatchetSKM.OutboundSession
Package
Description
The Double Ratchet with X25519 key agreement and ECIES hybrid encryption, used by the NTCP2 and SSU transports for session encryption.
Uses of RatchetSKM.OutboundSession in net.i2p.router.crypto.ratchet
Fields in net.i2p.router.crypto.ratchet with type parameters of type RatchetSKM.OutboundSessionModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<PublicKey, RatchetSKM.OutboundSession> RatchetSKM._outboundSessionsMap allowing us to go from the targeted PublicKey to the OutboundSession used.private final HashMap<PublicKey, List<RatchetSKM.OutboundSession>> RatchetSKM._pendingOutboundSessionsOutbound sessions waiting for a reply, by key.Methods in net.i2p.router.crypto.ratchet that return RatchetSKM.OutboundSessionModifier and TypeMethodDescriptionprivate RatchetSKM.OutboundSessionRatchetSKM.getSession(PublicKey target) Returns the pending session for a target key.(package private) static RatchetSKM.OutboundSessionRatchetSKM.takePendingFor(List<RatchetSKM.OutboundSession> pending, HandshakeState oldState) Detach the pending session this New Session Reply belongs to, so the caller can promote it outside the map monitor.Methods in net.i2p.router.crypto.ratchet that return types with arguments of type RatchetSKM.OutboundSessionModifier and TypeMethodDescriptionprivate Set<RatchetSKM.OutboundSession> RatchetSKM.getOutboundSessions()OutboundSession - used only by HTML.Methods in net.i2p.router.crypto.ratchet with parameters of type RatchetSKM.OutboundSessionModifier and TypeMethodDescriptionprivate booleanRatchetSKM.addSession(RatchetSKM.OutboundSession sess, boolean isInbound) For inbound, we are Bob, NS received, replace if very old For outbound, we are Alice, NSR received, never replace.Method parameters in net.i2p.router.crypto.ratchet with type arguments of type RatchetSKM.OutboundSessionModifier and TypeMethodDescriptionRatchetSKM.buildOutboundRows(Collection<RatchetSKM.OutboundSession> sessions, long now) One row per outbound session of {peer, established, last used, last received, sets}, sorted by peer.RatchetSKM.buildOutboundSetRows(Collection<RatchetSKM.OutboundSession> sessions, long now) One row per live (not yet expired) outbound tag set of {peer, set, acked, created, last used, expires in, remaining, NK sent}, sorted by peer then set.(package private) static RatchetSKM.OutboundSessionRatchetSKM.takePendingFor(List<RatchetSKM.OutboundSession> pending, HandshakeState oldState) Detach the pending session this New Session Reply belongs to, so the caller can promote it outside the map monitor.