28 lines
943 B
Nim
28 lines
943 B
Nim
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): KeycardExportedKey =
|
|
result = KeycardExportedKey()
|
|
|
|
method keycardGetStatusApplication*(self: MockBackend): KeycardStatus =
|
|
result = KeycardStatus()
|
|
|
|
method keycardUnpair*(self: MockBackend, index: int) = discard
|
|
|
|
method keycardGenerateKey*(self: MockBackend): string =
|
|
result = "0x00"
|