Mistake on this page?
Report an issue in GitHub or email us
iso7816_defs.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 /**
18  * \file iso7816_defs.h
19  * \copyright Copyright (c) ARM Ltd 2013
20  * \author Donatien Garnier
21  */
22 
23 #ifndef ISO7816_DEFS_H_
24 #define ISO7816_DEFS_H_
25 
26 #define ISO7816_INS_SELECT 0xA4
27 #define ISO7816_INS_READ_BINARY 0xB0
28 #define ISO7816_INS_UPDATE_BINARY 0xD6
29 #define ISO7816_INS_ENVELOPE 0xC2
30 
31 
32 #define ISO7816_SW_OK 0x9000
33 #define ISO7816_SW_INVALID_CLASS 0x6E00
34 #define ISO7816_SW_INVALID_INS 0x6D00
35 #define ISO7816_SW_NOT_FOUND 0x6A82
36 #define ISO7816_SW_WRONG_LENGTH 0x6700
37 
38 #define ISO7816_PUT_SW(buf, sw) do{ *(buf)=(sw>>8) & 0xFF; *(buf+1)=(sw>>0) & 0xFF; } while(0);
39 
40 
41 
42 #endif /* ISO7816_DEFS_H_ */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.