JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

how to judge that the class byte of APDU command is valid?

JavaCard Applet Development Related Questions and Answers.
later123654
Posts: 11
Joined: Tue May 22, 2018 9:43 pm
Points :130
Contact:

how to judge that the class byte of APDU command is valid?

Post by later123654 » Fri Jun 15, 2018 4:46 am

how to judge that the class byte of APDU command is valid? I want to know the answer, please tell me and thanks!

hanjing
Posts: 2
Joined: Wed Aug 31, 2016 9:58 pm
Points :42
Contact:

Re: how to judge that the class byte of APDU command is valid?

Post by hanjing » Fri Jun 15, 2018 4:56 am

Please refer to JavaCard222JCREspec 4.5.1 and hope to help you.

wumindejia
Posts: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: how to judge that the class byte of APDU command is valid?

Post by wumindejia » Fri Jun 15, 2018 4:57 am

According to specific specifications,Ins is generally 0x00,0x04,0x80,0x84.

gyylxz
Posts: 3
Joined: Fri Jun 15, 2018 4:59 am
Points :22
Contact:

Re: how to judge that the class byte of APDU command is valid?

Post by gyylxz » Fri Jun 15, 2018 5:11 am

Filter by the following function:
int8_t apdu_is_valid_cla(void)
{
return (int8_t)((((g_apdu_info.cla) & 0xE0) != 0x20) && ((g_apdu_info.cla) != 0xFF));
}

gyylxz
Posts: 3
Joined: Fri Jun 15, 2018 4:59 am
Points :22
Contact:

Re: how to judge that the class byte of APDU command is valid?

Post by gyylxz » Fri Jun 15, 2018 5:12 am

Filter by the following function:
int8_t apdu_is_valid_cla(void)
{
return (int8_t)((((g_apdu_info.cla) & 0xE0) != 0x20) && ((g_apdu_info.cla) != 0xFF));
}

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 51 guests

JavaCard OS : Disclaimer