| Package | Description |
|---|---|
| net.i2p.data.i2np | This package defines the low-level messages sent between routers,
called Invisible Internet Network Protocol (I2NP). |
| Modifier and Type | Class and Description |
|---|---|
class | ShortEncryptedBuildRecordSmall records. |
| Modifier and Type | Field and Description |
|---|---|
protected EncryptedBuildRecord[] | TunnelBuildMessageBase._recordsDescription. |
| Modifier and Type | Method and Description |
|---|---|
static EncryptedBuildRecord | BuildResponseRecord.create(I2PAppContext ctx,
int status,
SessionKey replyKey,
byte[] replyIV,
long responseMessageId)Creates a new AES-encrypted response record. |
static EncryptedBuildRecord | BuildResponseRecord.create(I2PAppContext ctx,
int status,
SessionKey replyKey,
byte[] replyAD,
Properties options)Creates a new ChaCha/Poly-encrypted response record (long format). |
EncryptedBuildRecord | BuildRequestRecord.encryptECIESRecord(RouterContext ctx,
PublicKey toKey,
Hash toPeer)Encrypts the record using ECIES. |
EncryptedBuildRecord | BuildRequestRecord.encryptRecord(I2PAppContext ctx,
PublicKey toKey,
Hash toPeer)Encrypts the record using ElGamal. |
EncryptedBuildRecord | TunnelBuildMessageBase.getRecord(int index) |
| Modifier and Type | Method and Description |
|---|---|
static boolean | BuildResponseRecord.decrypt(EncryptedBuildRecord rec,
SessionKey key,
byte[] ad)Decrypts a standard ChaCha/Poly-encrypted record. |
static boolean | BuildResponseRecord.decrypt(EncryptedBuildRecord rec,
SessionKey key,
byte[] ad,
int nonce)Decrypts a short ChaCha/Poly-encrypted record. |
void | TunnelBuildMessageBase.setRecord(int index,
EncryptedBuildRecord record) |
void | ShortTunnelBuildReplyMessage.setRecord(int index,
EncryptedBuildRecord record) |
void | ShortTunnelBuildMessage.setRecord(int index,
EncryptedBuildRecord record) |
void | OutboundTunnelBuildReplyMessage.setRecord(int index,
EncryptedBuildRecord record) |
| Constructor and Description |
|---|
BuildRequestRecord(RouterContext ctx,
PrivateKey ourKey,
EncryptedBuildRecord encryptedRecord)Decrypts an encrypted build request record. |