JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
how to judge that the class byte of APDU command is valid?
-
- 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?
how to judge that the class byte of APDU command is valid? I want to know the answer, please tell me and thanks!
Re: how to judge that the class byte of APDU command is valid?
Please refer to JavaCard222JCREspec 4.5.1 and hope to help you.
-
- 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?
According to specific specifications,Ins is generally 0x00,0x04,0x80,0x84.
Re: how to judge that the class byte of APDU command is valid?
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));
}
int8_t apdu_is_valid_cla(void)
{
return (int8_t)((((g_apdu_info.cla) & 0xE0) != 0x20) && ((g_apdu_info.cla) != 0xFF));
}
Re: how to judge that the class byte of APDU command is valid?
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));
}
int8_t apdu_is_valid_cla(void)
{
return (int8_t)((((g_apdu_info.cla) & 0xE0) != 0x20) && ((g_apdu_info.cla) != 0xFF));
}
Who is online
Users browsing this forum: No registered users and 52 guests