java.lang.Object
net.i2p.router.crypto.ratchet.RatchetEntry
Container for outbound ratchet encryption data including tag, key, nonce, and optional next session keys for message preparation The object returned from
SKM.consumeNextAvailableTag() to the engine encrypt.Field Summary
FieldsModifier and TypeFieldDescriptionACKs queued for delivery with this entry, or null.final SessionKeyAndNonceThe session key.final intThe key identifier.final NextSessionKeyThe next {forward} chain key.final NextSessionKeyThe next {reverse} chain key.final intThe previous chain length.final RatchetSessionTagThe session tag.Constructor Summary
ConstructorsConstructorDescriptionRatchetEntry(RatchetSessionTag tag, SessionKeyAndNonce key, int keyID, int pn) Outbound-calculated key.RatchetEntry(RatchetSessionTag tag, SessionKeyAndNonce key, int keyID, int pn, NextSessionKey nextFwdKey, NextSessionKey nextRevKey, List<Integer> acksToSend) Full constructor with optional next keys and pending ACKs.Method Summary
Field Details
tag
The session tag.key
The session key.keyID
public final int keyIDThe key identifier.pn
public final int pnThe previous chain length.nextForwardKey
The next {forward} chain key.nextReverseKey
The next {reverse} chain key.acksToSend
Constructor Details
RatchetEntry
Outbound-calculated key.- Parameters:
tag- the session tag identifying the key being usedkey- the session key and nonce to encrypt withkeyID- the key identifier recorded in the messagepn- the length of the previous ratchet chain
RatchetEntry
public RatchetEntry(RatchetSessionTag tag, SessionKeyAndNonce key, int keyID, int pn, NextSessionKey nextFwdKey, NextSessionKey nextRevKey, List<Integer> acksToSend) Full constructor with optional next keys and pending ACKs.- Parameters:
tag- the session tag identifying the key being usedkey- the session key and nonce to encrypt withkeyID- the key identifier recorded in the messagepn- the length of the previous ratchet chainnextFwdKey- the next forward chain key, or null if none was derivednextRevKey- the next reverse chain key, or null if none was derivedacksToSend- the ACK sequence numbers queued for delivery with this entry, or null when none are pending
Method Details
toString