Interface KeyRatchet

All Superinterfaces:
AutoCloseable

public interface KeyRatchet extends 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 Type
    Method
    Description
    void
     
    void
    deleteKey(int keyGeneration)
     
    byte[]
    getEncryptionKey(int keyGeneration)
     
  • Method Details

    • getEncryptionKey

      byte[] getEncryptionKey(int keyGeneration)
    • deleteKey

      void deleteKey(int keyGeneration)
    • close

      void close()
      Specified by:
      close in interface AutoCloseable