2021-10-04 21:21:07 +00:00
|
|
|
import ../types
|
|
|
|
import ../../types/[keycard]
|
|
|
|
|
|
|
|
method keycardStart*(self: MockBackend) = discard
|
|
|
|
|
|
|
|
method keycardStop*(self: MockBackend) = discard
|
|
|
|
|
|
|
|
method keycardSelect*(self: MockBackend): KeycardApplicationInfo =
|
|
|
|
result = KeycardApplicationInfo(installed: true)
|
|
|
|
|
|
|
|
method keycardPair*(self: MockBackend, pairingPassword: string): KeycardPairingInfo =
|
|
|
|
result = KeycardPairingInfo()
|
|
|
|
|
|
|
|
method keycardOpenSecureChannel*(self: MockBackend, index: int, key: string) = discard
|
|
|
|
|
|
|
|
method keycardVerifyPin*(self: MockBackend, pin: string) = discard
|
|
|
|
|
|
|
|
method keycardExportKey*(self: MockBackend, derive: bool, makeCurrent: bool, onlyPublic: bool, path: string): string =
|
|
|
|
result = "0x00"
|
2021-10-05 09:35:07 +00:00
|
|
|
|
|
|
|
method keycardGetStatusApplication*(self: MockBackend): KeycardStatus =
|
|
|
|
result = KeycardStatus()
|