Package net.i2p.data.i2np
Class BuildResponseRecord
- java.lang.Object
-
- net.i2p.data.i2np.BuildResponseRecord
-
public class BuildResponseRecord extends Object
Class that creates an encrypted tunnel build message record. The reply record is the same size as the request record (528 bytes). When decrypted:Bytes 0-31 contain the hash of bytes 32-527 Bytes 32-526 contain random data. Byte 527 contains the reply.
-
-
Constructor Summary
Constructors Constructor Description BuildResponseRecord()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncryptedBuildRecord
create(I2PAppContext ctx, int status, SessionKey replyKey, byte[] replyIV, long responseMessageId)
Create a new encrypted response
-
-
-
Method Detail
-
create
public static EncryptedBuildRecord create(I2PAppContext ctx, int status, SessionKey replyKey, byte[] replyIV, long responseMessageId)
Create a new encrypted response- Parameters:
status
- the response 0-255replyIV
- 16 bytesresponseMessageId
- unused except for debugging- Returns:
- a 528-byte response record
-
-