Packages that use GarlicMessage
Package
Description
Garlic message creation, parsing and handling, and the outbound message jobs: one-shot sends, source routing and delivery status handling.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Uses of GarlicMessage in net.i2p.router.message
Fields in net.i2p.router.message declared as GarlicMessageModifier and TypeFieldDescriptionprivate final GarlicMessageHandleGarlicMessageJob._messageThe garlic message being processed.private final GarlicMessageOutboundClientMessageOneShotJob.DispatchJob._msgThe message being sent.Methods in net.i2p.router.message that return GarlicMessageModifier and TypeMethodDescriptionstatic GarlicMessageGarlicMessageBuilder.buildECIESMessage(RouterContext ctx, GarlicConfig config) Encrypt from an anonymous source.(package private) static GarlicMessageGarlicMessageBuilder.buildECIESMessage(RouterContext ctx, GarlicConfig config, Hash from, Destination to, SessionKeyManager skm, ReplyCallback callback) ECIES_X25519 and PQ only.static GarlicMessageGarlicMessageBuilder.buildMessage(RouterContext ctx, GarlicConfig config, Set<SessionTag> wrappedTags, PublicKey target, SessionKey encryptKey, SessionTag encryptTag) ELGAMAL_2048 only.static GarlicMessageGarlicMessageBuilder.buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, int numTagsToDeliver, int lowTagsThreshold, SessionKeyManager skm) ELGAMAL_2048 only.static GarlicMessageGarlicMessageBuilder.buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, int numTagsToDeliver, SessionKeyManager skm) ELGAMAL_2048 only Called by OCMJH.static GarlicMessageGarlicMessageBuilder.buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, SessionKeyManager skm) ELGAMAL_2048 only.static GarlicMessageGarlicMessageBuilder.buildMessage(RouterContext ctx, GarlicConfig config, SessionKey encryptKey, RatchetSessionTag encryptTag) Ratchet only.(package private) static GarlicMessageOutboundClientMessageJobHelper.createGarlicMessage(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, PayloadGarlicConfig dataClove, Hash from, Destination dest, TunnelInfo replyTunnel, int tagsToSendOverride, int lowTagsOverride, SessionKey wrappedKey, Set<SessionTag> wrappedTags, boolean requireAck, LeaseSet bundledReplyLeaseSet, ReplyCallback callback) Build a garlic message that will be delivered to the router on which the target is located.private static GarlicMessageOutboundClientMessageJobHelper.wrapDSM(RouterContext ctx, SessionKeyManager skm, DeliveryStatusMessage dsm, long expiration) Wrap a DSM in a GarlicMessage, add the fake session to the SKM.Methods in net.i2p.router.message with parameters of type GarlicMessageModifier and TypeMethodDescription(package private) CloveSetGarlicMessageParser.getGarlicCloves(GarlicMessage message, PrivateKey encryptionKey, SessionKeyManager skm) Supports ELGAMAL_2048, ECIES_X25519, and PQ.(package private) CloveSetGarlicMessageParser.getGarlicCloves(GarlicMessage message, PrivateKey elgKey, PrivateKey ecKey, SessionKeyManager skm) Supports both ELGAMAL_2048 and ECIES_X25519.voidGarlicMessageReceiver.receive(GarlicMessage message) Processes a received GarlicMessage by attempting to decrypt it with the appropriate keys.Constructors in net.i2p.router.message with parameters of type GarlicMessageModifierConstructorDescriptionDispatchJob(GarlicMessage msg, OutboundClientMessageOneShotJob.ReplySelector sel, OutboundClientMessageOneShotJob.SendSuccessJob success, OutboundClientMessageOneShotJob.SendTimeoutJob timeout) Create a dispatch job.HandleGarlicMessageJob(RouterContext context, GarlicMessage msg, RouterIdentity from, Hash fromHash, long msgIDBloomXorLocal, long msgIDBloomXorRouter, long msgIDBloomXorTunnel) Job to handle an inbound garlic message received outside of a tunnel.Uses of GarlicMessage in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia declared as GarlicMessageModifier and TypeFieldDescriptionprivate GarlicMessageMessageWrapper.WrappedMessage.msgThe wrapped GarlicMessage.Methods in net.i2p.router.networkdb.kademlia that return GarlicMessageModifier and TypeMethodDescription(package private) GarlicMessageMessageWrapper.WrappedMessage.getMessage()The wrapped I2NP message.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, RouterInfo to) Garlic wrap a message from nobody, destined for a router, to hide the contents from the OBEP.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, SessionTag encryptTag) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, RatchetSessionTag encryptTag) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, MessageWrapper.OneTimeSession session) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.Constructors in net.i2p.router.networkdb.kademlia with parameters of type GarlicMessageModifierConstructorDescription(package private)WrappedMessage(GarlicMessage msg, SessionKeyManager skm, PublicKey sentTo, SessionKey sentKey, TagSetHandle tsh) Wrapped message.