Go to the documentation of this file.
37 #define GP211_SCP01 0x01
38 #define GP211_SCP02 0x02
39 #define GP211_SCP03 0x03
44 #define GP211_SCP01_IMPL_i05 0x05
48 #define GP211_SCP01_IMPL_i15 0x15
54 #define GP211_SCP02_IMPL_i44 0x44
60 #define GP211_SCP02_IMPL_i45 0x45
65 #define GP211_SCP02_IMPL_i54 0x54
70 #define GP211_SCP02_IMPL_i55 0x55
74 #define GP211_SCP02_IMPL_i04 0x04
78 #define GP211_SCP02_IMPL_i05 0x05
82 #define GP211_SCP02_IMPL_i0A 0x0A
86 #define GP211_SCP02_IMPL_i0B 0x0B
91 #define GP211_SCP02_IMPL_i14 0x14
96 #define GP211_SCP02_IMPL_i15 0x15
100 #define GP211_SCP02_IMPL_i1A 0x1A
104 #define GP211_SCP02_IMPL_i1B 0x1B
108 #define GP211_SCP03_IMPL_i00 0x00
112 #define GP211_SCP03_IMPL_i10 0x10
117 #define GP211_SCP03_IMPL_i30 0x30
122 #define GP211_SCP03_IMPL_i20 0x20
127 #define GP211_SCP03_IMPL_i60 0x60
132 #define GP211_SCP03_IMPL_i70 0x70
134 #define GP211_SCP01_SECURITY_LEVEL_C_DEC_C_MAC 0x03
135 #define GP211_SCP01_SECURITY_LEVEL_C_MAC 0x01
136 #define GP211_SCP01_SECURITY_LEVEL_NO_SECURE_MESSAGING 0x00
138 #define GP211_SCP02_SECURITY_LEVEL_C_DEC_C_MAC_R_MAC 0x13
139 #define GP211_SCP02_SECURITY_LEVEL_C_MAC_R_MAC 0x11
140 #define GP211_SCP02_SECURITY_LEVEL_R_MAC 0x10
141 #define GP211_SCP02_SECURITY_LEVEL_C_DEC_C_MAC 0x03
142 #define GP211_SCP02_SECURITY_LEVEL_C_MAC 0x01
143 #define GP211_SCP02_SECURITY_LEVEL_NO_SECURE_MESSAGING 0x00
146 #define GP211_SCP03_SECURITY_LEVEL_C_DEC_C_MAC 0x03
147 #define GP211_SCP03_SECURITY_LEVEL_C_MAC 0x01
148 #define GP211_SCP03_SECURITY_LEVEL_NO_SECURE_MESSAGING 0x00
149 #define GP211_SCP03_SECURITY_LEVEL_C_DEC_R_ENC_C_MAC_R_MAC 0x33
150 #define GP211_SCP03_SECURITY_LEVEL_C_DEC_C_MAC_R_MAC 0x13
151 #define GP211_SCP03_SECURITY_LEVEL_C_DEC_C_MAC_R_ENC_R_MAC 0x33
152 #define GP211_SCP03_SECURITY_LEVEL_C_MAC_R_MAC 0x11
153 #define GP211_SCP03_SECURITY_LEVEL_R_MAC 0x10
154 #define GP211_SCP03_SECURITY_LEVEL_R_ENC_R_MAC 0x30
156 #define GP211_KEY_TYPE_RSA_PUB_N 0xA1
157 #define GP211_KEY_TYPE_RSA_PUB_E 0xA0
158 #define GP211_KEY_TYPE_RSA_PRIV_N 0xA2
159 #define GP211_KEY_TYPE_RSA_PRIV_D 0xA3
160 #define GP211_KEY_TYPE_RSA_PRIV_P 0xA4
161 #define GP211_KEY_TYPE_RSA_PRIV_Q 0xA5
162 #define GP211_KEY_TYPE_RSA_PRIV_PQ 0xA6
163 #define GP211_KEY_TYPE_RSA_PRIV_DP1 0xA7
164 #define GP211_KEY_TYPE_RSA_PRIV_DQ1 0xA8
167 #define GP211_KEY_TYPE_3DES 0x81
168 #define GP211_KEY_TYPE_DES 0x80
169 #define GP211_KEY_TYPE_3DES_CBC 0x82
170 #define GP211_KEY_TYPE_DES_ECB 0x83
171 #define GP211_KEY_TYPE_DES_CBC 0x84
172 #define GP211_KEY_TYPE_PSK_TLS 0x85
173 #define GP211_KEY_TYPE_AES 0x88
175 #define OP201_SECURITY_LEVEL_ENC_MAC 0x03
176 #define OP201_SECURITY_LEVEL_MAC 0x01
177 #define OP201_SECURITY_LEVEL_PLAIN 0x00
179 #define OP201_KEY_TYPE_RSA_PUP_N 0xA1
180 #define OP201_KEY_TYPE_RSA_PUP_E 0xA0
181 #define OP201_KEY_TYPE_DES 0x80
182 #define OP201_KEY_TYPE_DES_ECB 0x81
183 #define OP201_KEY_TYPE_DES_CBC 0x82
210 BYTE dataEncryptionSessionKey[16];
BYTE confirmationCounterLength
Length of the confirmation counter buffer.
Definition: security.h:246
BYTE keySetVersion
The keyset version used in secure channel.
Definition: security.h:219
BYTE keyIndex
The key index used in secured channel.
Definition: security.h:220
LONG sessionEncryptionCounter
Session counter for SCP03 ICV encryption.
Definition: security.h:223
unsigned char BYTE
A Microsoft/Muscle BYTE definition.
Definition: types.h:51
long LONG
A long value.
Definition: types.h:53
Definition: security.h:203
BYTE keySetVersion
The keyset version used in the secure channel.
Definition: security.h:194
BYTE cardUniqueDataLength
The length of the card unique data buffer.
Definition: security.h:248
Definition: security.h:231
BYTE signatureLength
The length of the signature. Can be 8 for a 3DES signature or 128 for a RSA signature.
Definition: security.h:272
BYTE securityDomainAIDLength
The length of the Security Domain.
Definition: security.h:232
BYTE keyIndex
The key index used in the secure channel.
Definition: security.h:195
unsigned long DWORD
A Microsoft/Muscle DWORD definition.
Definition: types.h:52
DWORD invokingAidLength
The length of the invoking AID buffer.
Definition: security.h:222
BYTE securityLevel
The security level.
Definition: security.h:189
BYTE secureChannelProtocol
The Secure Channel Protocol.
Definition: security.h:205
Definition: security.h:280
BYTE receiptLength
The length of the receipt DAP.
Definition: security.h:244
BYTE confirmationCounterLength
Length of the confirmation counter buffer.
Definition: security.h:283
Definition: security.h:188
BYTE receiptLength
The length of the receipt DAP.
Definition: security.h:281
BYTE signatureLength
The length of the signature. Can be 8 for a 3DES signature or 128 for a RSA signature.
Definition: security.h:234
Definition: security.h:243
BYTE cardUniqueDataLength
The length of the card unique data buffer.
Definition: security.h:285
Definition: security.h:269
BYTE securityDomainAIDLength
The length of the Security Domain.
Definition: security.h:270
BYTE securityLevel
The security level.
Definition: security.h:204
BYTE secureChannelProtocolImpl
The Secure Channel Protocol implementation.
Definition: security.h:206