Class InMemoryKyberPreKeyStore

    • Constructor Detail

      • InMemoryKyberPreKeyStore

        InMemoryKyberPreKeyStore()
    • Method Detail

      • loadKyberPreKey

         KyberPreKeyRecord loadKyberPreKey(int kyberPreKeyId)

        Load a local KyberPreKeyRecord.

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

        the corresponding KyberPreKeyRecord.

      • storeKyberPreKey

         void storeKyberPreKey(int kyberPreKeyId, KyberPreKeyRecord record)

        Store a local KyberPreKeyRecord.

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

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

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

      • markKyberPreKeyUsed

         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.