Package | Description |
---|---|
net.i2p.data.i2np |
This package defines the low-level messages sent between routers,
called the Invisible Internet Network Protocol (I2NP).
|
Modifier and Type | Class and Description |
---|---|
class |
ShortEncryptedBuildRecord
Small records.
|
Modifier and Type | Field and Description |
---|---|
protected EncryptedBuildRecord[] |
TunnelBuildMessageBase._records |
Modifier and Type | Method and Description |
---|---|
static EncryptedBuildRecord |
BuildResponseRecord.create(I2PAppContext ctx,
int status,
SessionKey replyKey,
byte[] replyIV,
long responseMessageId)
Create a new encrypted response.
|
static EncryptedBuildRecord |
BuildResponseRecord.create(I2PAppContext ctx,
int status,
SessionKey replyKey,
byte[] replyAD,
Properties options)
Create a new encrypted response (long record).
|
EncryptedBuildRecord |
BuildRequestRecord.encryptECIESRecord(RouterContext ctx,
PublicKey toKey,
Hash toPeer)
Encrypt the record to the specified peer.
|
EncryptedBuildRecord |
BuildRequestRecord.encryptRecord(I2PAppContext ctx,
PublicKey toKey,
Hash toPeer)
Encrypt the record to the specified peer.
|
EncryptedBuildRecord |
TunnelBuildMessageBase.getRecord(int index) |
Modifier and Type | Method and Description |
---|---|
static boolean |
BuildResponseRecord.decrypt(EncryptedBuildRecord rec,
SessionKey key,
byte[] ad) |
static boolean |
BuildResponseRecord.decrypt(EncryptedBuildRecord rec,
SessionKey key,
byte[] ad,
int nonce) |
void |
OutboundTunnelBuildReplyMessage.setRecord(int index,
EncryptedBuildRecord record) |
void |
ShortTunnelBuildMessage.setRecord(int index,
EncryptedBuildRecord record) |
void |
TunnelBuildMessageBase.setRecord(int index,
EncryptedBuildRecord record) |
void |
ShortTunnelBuildReplyMessage.setRecord(int index,
EncryptedBuildRecord record) |
Constructor and Description |
---|
BuildRequestRecord(RouterContext ctx,
PrivateKey ourKey,
EncryptedBuildRecord encryptedRecord)
Decrypt the data from the specified record, writing the decrypted record into this instance's
data buffer
Caller MUST check that first 16 bytes of our hash matches first 16 bytes of encryptedRecord
before calling this.
|