AndroidKeyStoreSigningKey

A hardware-backed JwsProcessor that signs and verifies data using keys stored in the Android Keystore. Key material never leaves the secure element (TEE or StrongBox) — private and secret keys are generated and used entirely within the secure hardware.

Use getInstance to look up an existing key, or getOrCreateInstance to obtain one and generate it on first use.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val algorithm: SigningAlgorithm
Link copied to clipboard
open override val keyId: String

Functions

Link copied to clipboard
open suspend override fun sign(data: ByteArray): ByteArray

Signs data using the hardware-backed key identified by keyId.

Link copied to clipboard
open suspend override fun verify(data: ByteArray, signature: ByteArray): Boolean

Verifies that signature is a valid signature over data produced by the key identified by keyId.