SoftwareSecureArea
An implementation of SecureArea in software.
This implementation supports all the curves and algorithms defined by SecureArea and also supports passphrase-protected keys. Key material is stored using the Storage abstraction and passphrase-protected keys are encrypted using AES-GCM with 256-bit keys with the key derived from the passphrase using HKDF.
On JVM and Android this is using Crypto and the algorithms and curves it implements.
Use SoftwareSecureArea.create to create an instance of SoftwareSecureArea.
Properties
Functions
Link copied to clipboard
open suspend fun batchCreateKey(numKeys: Int, createKeySettings: CreateKeySettings): BatchCreateKeyResult
Creates a batch of new keys.
Link copied to clipboard
open suspend override fun createKey(alias: String?, createKeySettings: CreateKeySettings): SoftwareKeyInfo
Creates a new key.
Link copied to clipboard
Gets information about a key.
Link copied to clipboard
Checks whether the key has been invalidated.
Link copied to clipboard
Gets the underlying private key.
Link copied to clipboard
open suspend override fun keyAgreement(alias: String, otherKey: EcPublicKey, keyUnlockData: KeyUnlockData?): ByteArray
Performs Key Agreement.
Link copied to clipboard
open suspend override fun sign(alias: String, dataToSign: ByteArray, keyUnlockData: KeyUnlockData?): EcSignature
Signs data with a key.