Accept message length in bytes
Offer message length in bytes
Saved state length in bytes
Shared key length in bytes
Accept offer message and return new accept message, which should be sent back to the offering party.
Also derives shared key, so the accepting party can call getSharedKey() right after calling accept.
Cleans the temporary instance data.
Offering party finishes key agreement by receiving accept message and passing it to finish(). After calling finish(), offering party can call sharedKey() to get shared key.
Returns the agreed shared key.
Offer returns a new offer message, which should be send to the accepting party.
Restores offering party's state.
Serializes secret offering party state into byte array.
This function should be called after offer() if the offering party cannot keep KeyAgreement instance in memory. When it receives accept message, it can create a new instance and call restoreState() on it with the serialized state to recover to continue the agreement.
Generated using TypeDoc