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

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

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

Public Types

enum  INS : byte {
  Init = 0x00, Blank = 0x01, SetKeyUser = 0x10, SetKeyAdmin = 0x11,
  SetPrivateKey = 0x41, GenPrivateKey = 0x42, GetPublicKey = 0x43, Verify = 0x44,
  HashVerify = 0x45, Sign = 0x46, HashSign = 0x47, Ecdh = 0x48,
  GetCsr = 0x4E
}
 INStructions exposed by this class. More...
 
enum  Chip : byte { AtAes132A = 0xAE, AtEcc608A = 0xEC }
 

Public Member Functions

bool Init (Chip chip)
 
bool Blank (Chip chip)
 
bool SetKeyUser (byte[]value)
 
bool SetKeyAdmin (byte[] value)
 
bool SetEccPrivateKey (byte idx, byte[] value, bool safe=true)
 
bool GetEccPublicKey (byte idx, out byte[] buffer)
 
bool GenerateEccPrivateKey (byte idx)
 
bool GetX509Csr (byte key_idx, byte csr_idx, out byte[] buffer)
 

Static Public Attributes

const string AtEccCurveName = "P-256"
 

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: