SpringCard SpringCore Library for .NET  20.04.16
High-level access to the SpringCore devices
SpringCard.SpringCore.Direct.DirectDevice.SamAvI Class Reference

Implementation of the SAM_AV class (https://docs.springcard.com/books/SpringCore/Host_interfaces/Logical/Direct_Protocol/SAM_AV_class/) More...

Inheritance diagram for SpringCard.SpringCore.Direct.DirectDevice.SamAvI:
SpringCard.SpringCore.Direct.DirectDevice.ExchangeI

Public Types

enum  INS : byte {
  Open = 0x10, Close = 0x11, Version = 0x12, Random = 0x13,
  HostAuth = 0x14, Lock = 0x15, Unlock = 0x16, FormatAv2 = 0x1E,
  RestoreFactoryDefaults = 0x1F, GetEntry = 0x20, ChangeKeyEntry = 0x21, PkiGenerateHash = 0x50,
  PkiVerifySignature = 0x51, PkiHashAndVerifySignature = 0x52, PkiGenerateSignature = 0x53, PkiHashAndGenerateSignature = 0x54,
  PkiGetEntry = 0x60, PkiGetPublicKey = 0x61, PkiGetPrivateKey = 0x62, PkiUpdateEntry = 0x68,
  PkiSetPublicKey = 0x69, PkiSetPrivateKey = 0x6D, PkiGeneratePrivateKey = 0x6E, PkiLockPrivateKey = 0x6F
}
 INStructions exposed by this class. More...
 

Public Member Functions

bool Open ()
 
bool Close ()
 
bool HostAuth ()
 
bool GetVersion (out byte[] buffer)
 
bool FormatAv2 ()
 
bool RestoreFactoryDefaults ()
 
bool SetKeyEntry (byte idx, byte[] value, bool safe=true)
 
bool PkiLockPrivateKey (byte idx)
 
bool PkiGenRsa (byte idx)
 
bool PkiGetPublicKey (byte idx, out byte[] buffer)
 
bool PkiGetPrivateKey (byte idx, out byte[] buffer)
 
bool PkiSetPrivateKey (byte idx, byte[] buffer)
 
bool PkiSetPrivateKey (byte idx, RSAPrivateKey privateKey)
 
bool PkiGenerateHash (byte hash_algo, byte[] buffer, out byte[] hash)
 
bool PkiVerifySignature (byte idx, byte hash_algo, byte[] hash, byte[] signature)
 
bool PkiHashAndVerifySignature (byte idx, byte hash_algo, byte[] input, byte[] signature)
 
bool PkiGenerateSignature (byte idx, byte hash_algo, byte[] hash, out byte[] signature)
 
bool PkiHashAndGenerateSignature (byte idx, byte hash_algo, byte[] input, out byte[] signature)
 
bool PkiGenerateHash (byte idx, byte hash_algo, byte[] input, out byte[] hash)
 

Static Public Attributes

const byte HashAlgoSha1 = 0x00
 
const byte HashAlgoSha224 = 0x01
 
const byte HashAlgoSha256 = 0x03
 

Additional Inherited Members

- Protected Member Functions inherited from SpringCard.SpringCore.Direct.DirectDevice.ExchangeI
 ExchangeI (CLA _CLA, DirectDevice parent)
 
bool Exchange (CLA Cla, byte[] Cmd, out byte[] Rsp, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, byte[] CmdData, out byte Sta, out byte[] RspData, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, byte[] CmdData, out byte[] RspData, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, byte[] CmdData, out byte Sta, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, byte[] CmdData, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, ExchangeOptions options=null)
 
bool Exchange (byte Cmd, out byte[] RspData, ExchangeOptions options=null)
 
- Properties inherited from SpringCard.SpringCore.Direct.DirectDevice.ExchangeI
DirectDevice parent [get]
 
CLA _CLA [get]
 

Detailed Description

Member Enumeration Documentation

◆ INS

INStructions exposed by this class.


The documentation for this class was generated from the following file: