com.pax.dal.memorycard
Interface ICardAT88SC153
-
- All Superinterfaces:
- IMemoryCard
public interface ICardAT88SC153 extends IMemoryCard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()关闭 AT88SC153.QInfocryptoF2_153(byte[] Ci, byte[] Gc, byte[] Q0)ATMEL ELVA算法ATMEL ELVA algorithmvoidinitAuth(byte[] randNumber)初始化授权Initialize authorization.byte[]open()重置 AT88SC153.voidprogEEPROM(byte zoneNum, int bAddr, byte[] dataBlock)写EEPROMWrite EEPROM.voidprogFuse(byte fsVal)写入熔丝字节。Write fuse byte.byte[]readEEPROM(byte zoneNum, int bAddr, int nums)读取EEPROM,当区号为3时,读取配置区块Read EEPROM.When zoneNum=3,read Configuration Zone.bytereadFuse()读熔丝字节。Read fuse byte.voidverifyAuth(byte[] challenge)验证授权Verify authorization.voidverifySC(int index, int rwp, byte[] password)验证密码Verify password.-
Methods inherited from interface com.pax.dal.memorycard.IMemoryCard
setSlot
-
-
-
-
Method Detail
-
open
byte[] open() throws AT88SC153DevException
重置 AT88SC153.Reset AT88SC153.- Returns:
- 重置返回,4字节data of reset, 4 bytes
- Throws:
AT88SC153DevException
-
close
void close() throws AT88SC153DevException
关闭 AT88SC153.close AT88SC153.- Throws:
AT88SC153DevException
-
readEEPROM
byte[] readEEPROM(byte zoneNum, int bAddr, int nums) throws AT88SC153DevException
读取EEPROM,当区号为3时,读取配置区块Read EEPROM.When zoneNum=3,read Configuration Zone.- Parameters:
zoneNum-要读取的区号the number of zone to be readbAddr-开始地址begin addressnums-要读取的数据长度the length of the data to be read- Returns:
- 读取的数据the read data
- Throws:
AT88SC153DevException
-
progEEPROM
void progEEPROM(byte zoneNum, int bAddr, byte[] dataBlock) throws AT88SC153DevException
写EEPROMWrite EEPROM.- Parameters:
zoneNum-要读取的区号the number of zone to be readbAddr-开始地址begin addressdataBlock-要写的数据the data to be Written- Throws:
AT88SC153DevException
-
verifySC
void verifySC(int index, int rwp, byte[] password) throws AT88SC153DevException
验证密码Verify password.- Parameters:
index-密码索引the index of passwordrwp-1: 读取操作密码 0: 写操作密码1: read operation password 0: write operation passwordpassword-密码,3字节password, 3 bytes- Throws:
AT88SC153DevException
-
initAuth
void initAuth(byte[] randNumber) throws AT88SC153DevException
初始化授权Initialize authorization.- Parameters:
randNumber-随机数,8字节random numbers, 8 bytes- Throws:
AT88SC153DevException
-
verifyAuth
void verifyAuth(byte[] challenge) throws AT88SC153DevException
验证授权Verify authorization.- Parameters:
challenge-授权信息,8字节authentication info, 8 bytes- Throws:
AT88SC153DevException
-
readFuse
byte readFuse() throws AT88SC153DevException
读熔丝字节。Read fuse byte.- Returns:
- 1字节熔丝数据a byte fuse data
- Throws:
AT88SC153DevException
-
progFuse
void progFuse(byte fsVal) throws AT88SC153DevException
写入熔丝字节。Write fuse byte.- Parameters:
fsVal-要写入的字节the byte to be written- Throws:
AT88SC153DevException
-
cryptoF2_153
QInfo cryptoF2_153(byte[] Ci, byte[] Gc, byte[] Q0) throws AT88SC153DevException
ATMEL ELVA算法ATMEL ELVA algorithm- Parameters:
Ci-随机数,由卡生成,8字节random numbers,generated by card, 8 bytesGc-密码子,8字节password seed, 8bytesQ0-随机数,由终端产生,8字节random numbers,generated by terminal, 8 bytes- Returns:
- QInfo 有两个成员: byte[] Q1, byte[] Q2QInfo has two members: byte[] Q1, byte[] Q2
- Throws:
AT88SC153DevException
-
-