Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 移动互联网  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Unwrap函数的求助!!
chenqi_1215





发贴: 3
积分: 0
于 2007-06-15 12:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
天使跟我说答对了有奖品,真的!
选择applet,外部认证后(要求权限是明文+MAC)调用unwrap函数时老是返回0X6982,为什么。流程如下:
public boolean select(){
MySecureChannel = GPSystem.getSecureChannel();
} // 事例化变量
private void Initialise_Update(APDU apdu)
throws ISOException{
}
private void External_Authenticate(APDU apdu) //成功并且P1=1
throws ISOException{
}
private void XXXX(APDU apdu)
throws ISOException
{
byte[] buffer = apdu.getBuffer();
short wrapedLen = apdu.setIncomingAndReceive();
if(buffer[ISO7816.OFFSET_CLA]==0x04)
{
if(MySecureChannel.getSecurityLevel() == (byte)0x81) //明文 + MAC
MySecureChannel.unwrap(buffer,(short)0,(short)(wrapedLen+5)); //出问题
}
}

另外我在DEBUG时可以执行0070 0000 01 返回01 9000,但是下载到卡里后执行却返回6985, Why ?



作者 Re:Unwrap函数的求助!! [Re:chenqi_1215]
chenqi_1215





发贴: 3
积分: 0
于 2007-06-22 11:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
怎么没人回答呢,真是郁闷,发现这个网站的回贴率太低,伤心




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923