sign

open suspend override fun sign(data: ByteArray): ByteArray(source)

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

ECDSA signatures are converted from the DER encoding produced by Android Keystore to the P1363 (raw r || s) format required by JWT before being returned.