| Package | Description |
|---|---|
| net.i2p.router.message |
Creates and parses garlic messages.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PayloadGarlicConfig
Garlic config for a single clove, containing an I2NP message and no sub-cloves.
|
| Modifier and Type | Method and Description |
|---|---|
GarlicConfig |
GarlicConfig.getClove(int index) |
GarlicConfig |
PayloadGarlicConfig.getClove(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
GarlicConfig.addClove(GarlicConfig config)
Add a clove to the current message - if any cloves are added, an I2NP message
cannot be specified via setPayload.
|
void |
PayloadGarlicConfig.addClove(GarlicConfig config) |
static GarlicMessage |
GarlicMessageBuilder.buildECIESMessage(RouterContext ctx,
GarlicConfig config)
Encrypt from an anonymous source.
|
(package private) static GarlicMessage |
GarlicMessageBuilder.buildECIESMessage(RouterContext ctx,
GarlicConfig config,
net.i2p.data.Hash from,
net.i2p.data.Destination to,
net.i2p.crypto.SessionKeyManager skm,
ReplyCallback callback)
ECIES_X25519 only.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
net.i2p.data.SessionKey encryptKey,
RatchetSessionTag encryptTag)
Ratchet only.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
net.i2p.data.SessionKey wrappedKey,
Set<net.i2p.data.SessionTag> wrappedTags,
int numTagsToDeliver,
int lowTagsThreshold,
net.i2p.crypto.SessionKeyManager skm)
ELGAMAL_2048 only.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
net.i2p.data.SessionKey wrappedKey,
Set<net.i2p.data.SessionTag> wrappedTags,
int numTagsToDeliver,
net.i2p.crypto.SessionKeyManager skm)
ELGAMAL_2048 only.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
net.i2p.data.SessionKey wrappedKey,
Set<net.i2p.data.SessionTag> wrappedTags,
net.i2p.crypto.SessionKeyManager skm)
Now unused, since we have to generate a reply token first in OCMOSJ but we don't know if tags are required yet.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
Set<net.i2p.data.SessionTag> wrappedTags,
net.i2p.data.PublicKey target,
net.i2p.data.SessionKey encryptKey,
net.i2p.data.SessionTag encryptTag)
ELGAMAL_2048 only.
|
| Constructor and Description |
|---|
SendGarlicJob(RouterContext ctx,
GarlicConfig config,
Job onSend,
Job onSendFailed,
ReplyJob onReply,
Job onReplyFailed,
long timeoutMs,
int priority,
MessageSelector replySelector) |
SendGarlicJob(RouterContext ctx,
GarlicConfig config,
Job onSend,
Job onSendFailed,
ReplyJob onReply,
Job onReplyFailed,
long timeoutMs,
int priority,
MessageSelector replySelector,
net.i2p.data.SessionKey wrappedKey,
Set<net.i2p.data.SessionTag> wrappedTags) |
| Constructor and Description |
|---|
GarlicConfig(List<GarlicConfig> cloveConfigs,
net.i2p.data.Certificate cert,
long id,
long expiration,
DeliveryInstructions di) |