com.pax.dal.memorycard
Interface ICardAT88SC1608
-
- All Superinterfaces:
- IMemoryCard
public interface ICardAT88SC1608 extends IMemoryCard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()关闭 AT88SC1608.QInfocryptoF2(byte[] Ci, byte[] Gc, byte[] Q0)ATMEL ELVA 算法ATMEL ELVA algorithmvoidinitAuth(byte[] randNumber)初始化授权Initialize authorizationbyte[]open()重置 AT88SC1608.voidprogConfigZone(int baddr, byte[] dataBlock)写配置区Write config zone.voidprogFuse()写熔断字节Write fuse byte.voidprogUserZone(int baddr, byte[] dataBlock)写用户区Write user zone.byte[]readConfigZone(int baddr, int nums)读取配置区Read config zone.bytereadFuse()读取熔断字节Read fuse byte.byte[]readUserZone(int baddr, int nums)读取用户区Read user zone.voidsetUserZone(int userZoneIndex)选择用户区Choose user zone.voidverifyAuth(byte[] challenge)验证授权Verify authorizationvoidverifySC(int index, int rwp, byte[] password)验证密码Verify password.-
Methods inherited from interface com.pax.dal.memorycard.IMemoryCard
setSlot
-
-
-
-
Method Detail
-
open
byte[] open() throws AT88SC1608DevException
重置 AT88SC1608.Reset AT88SC1608.- Returns:
- 重置返回数据,4字节data of reset, 4 bytes
- Throws:
AT88SC1608DevException
-
close
void close() throws AT88SC1608DevException
关闭 AT88SC1608.Close AT88SC1608.- Throws:
AT88SC1608DevException
-
setUserZone
void setUserZone(int userZoneIndex) throws AT88SC1608DevException
选择用户区Choose user zone.- Parameters:
userZoneIndex-用户区索引the user zone index- Throws:
AT88SC1608DevException
-
readUserZone
byte[] readUserZone(int baddr, int nums) throws AT88SC1608DevException
读取用户区Read user zone.- Parameters:
baddr-起始地址begin addressnums-要读取的字节数bytes to be read- Returns:
- n字节数据n bytes data
- Throws:
AT88SC1608DevException
-
progUserZone
void progUserZone(int baddr, byte[] dataBlock) throws AT88SC1608DevException
写用户区Write user zone.- Parameters:
baddr-起始地址begin addressdataBlock-写的数据data to be write- Throws:
AT88SC1608DevException
-
readConfigZone
byte[] readConfigZone(int baddr, int nums) throws AT88SC1608DevException
读取配置区Read config zone.- Parameters:
baddr-起始地址begin addressnums-要读取的字节数bytes to be read- Returns:
- n字节数据n bytes data
- Throws:
AT88SC1608DevException
-
progConfigZone
void progConfigZone(int baddr, byte[] dataBlock) throws AT88SC1608DevException
写配置区Write config zone.- Parameters:
baddr-起始地址begin addressdataBlock-要写的数据data to be write- Throws:
AT88SC1608DevException
-
verifySC
void verifySC(int index, int rwp, byte[] password) throws AT88SC1608DevException
验证密码Verify password.- Parameters:
index-索引indexrwp-- !=0: 读取操作密码
- ==0: 写入操作密码
- !=0: read operation password
- ==0: write operation password
password-密码,3字节password, 3 bytes- Throws:
AT88SC1608DevException
-
initAuth
void initAuth(byte[] randNumber) throws AT88SC1608DevException
初始化授权Initialize authorization- Parameters:
randNumber-随机数,8字节random numbers, 8 bytes- Throws:
AT88SC1608DevException
-
verifyAuth
void verifyAuth(byte[] challenge) throws AT88SC1608DevException
验证授权Verify authorization- Parameters:
challenge-- Throws:
AT88SC1608DevException
-
readFuse
byte readFuse() throws AT88SC1608DevException
读取熔断字节Read fuse byte.- Returns:
- 1字节熔断数据a byte fuse data
- Throws:
AT88SC1608DevException
-
progFuse
void progFuse() throws AT88SC1608DevException
写熔断字节Write fuse byte.- Throws:
AT88SC1608DevException
-
cryptoF2
QInfo cryptoF2(byte[] Ci, byte[] Gc, byte[] Q0) throws AT88SC1608DevException
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
QInfoQInfo 有两个成员: byte[] Q1, byte[] Q2QInfoQInfoQInfo has two members: byte[] Q1, byte[] Q2 - Throws:
AT88SC1608DevException
-
-