Interface KyberPreKeyStore

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • loadKyberPreKey

         abstract KyberPreKeyRecord loadKyberPreKey(int kyberPreKeyId)

        Load a local KyberPreKeyRecord.

        Parameters:
        kyberPreKeyId - the ID of the local KyberPreKeyRecord.
        Returns:

        the corresponding KyberPreKeyRecord.

      • storeKyberPreKey

         abstract void storeKyberPreKey(int kyberPreKeyId, KyberPreKeyRecord record)

        Store a local KyberPreKeyRecord.

        Parameters:
        kyberPreKeyId - the ID of the KyberPreKeyRecord to store.
        record - the KyberPreKeyRecord.
      • containsKyberPreKey

         abstract boolean containsKyberPreKey(int kyberPreKeyId)
        Parameters:
        kyberPreKeyId - A KyberPreKeyRecord ID.
        Returns:

        true if the store has a record for the kyberPreKeyId, otherwise false.

      • markKyberPreKeyUsed

         abstract void markKyberPreKeyUsed(int kyberPreKeyId)

        Mark a KyberPreKeyRecord in the local storage as used.

        Remove if it is a one-time pre key and noop if it is last-resort.

        Parameters:
        kyberPreKeyId - The ID of the KyberPreKeyRecord to marked.