hwsecurity-openpgp / de.cotech.hw.openpgp.storage / EncryptedSessionStorage /

EncryptedSessionStorage

interface EncryptedSessionStorage

Interface for simple storage of encrypted session secrets. This interface assumes that only a single session secret will be stored per security key. This is only suitable for relatively simple use cases, e.g. an App lock mechanism that encrypts the database.

Functions

Name Summary
getEncryptedSessionSecret abstract fun getEncryptedSessionSecret(aid: Array<Byte>): Array<Byte>
hasAnyEncryptedSessionSecret

abstract fun hasAnyEncryptedSessionSecret(): Boolean

Returns true iff there are any session secrets currently stored.

hasEncryptedSessionSecret abstract fun hasEncryptedSessionSecret(aid: Array<Byte>): Boolean
setEncryptedSessionSecret abstract fun setEncryptedSessionSecret(aid: Array<Byte>, encryptedSessionSecret: Array<Byte>)

Inheritors

Name
AndroidPreferencesEncryptedSessionStorage