SmartCardPort

interface SmartCardPort

Port for hardware-backed signing and session-key decryption.

Functions

Link copied to clipboard
open fun decrypt(sessionKey: ByteArray, keyId: Long): ByteArray

Decrypts an encrypted session key using the smart-card private key keyId.

Link copied to clipboard
open fun isAvailable(): Boolean

Returns true when a smart card is connected and ready.

Link copied to clipboard
open fun sign(data: ByteArray, keyId: Long): ByteArray

Signs data with the private key identified by keyId.