Package moe.kyokobot.libdave
Interface KeyRatchet
- All Superinterfaces:
AutoCloseable
Represents a key ratchet, which manages the sequence of encryption/decryption keys for a sender.
In MLS, keys are "ratcheted" forward to ensure forward secrecy. This class holds the native handle to the ratchet state.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddeleteKey(int keyGeneration) byte[]getEncryptionKey(int keyGeneration)
-
Method Details
-
getEncryptionKey
byte[] getEncryptionKey(int keyGeneration) -
deleteKey
void deleteKey(int keyGeneration) -
close
void close()- Specified by:
closein interfaceAutoCloseable
-