ID Chip Reader
secure_message.h
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef ACCESS_SECURE_MESSAGE_H_
14 #define ACCESS_SECURE_MESSAGE_H_
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
35 int ProtectedSelectAPDU(unsigned char cmdData[2],
36  unsigned char* sendSequenceCounter,
37  unsigned char encryptSessionKey[16],
38  unsigned char macSessionKey[16]);
39 
59 int ProtectedReadBinaryAPDU(unsigned char cmdHeader[4],
60  unsigned char resLen,
61  unsigned char* responseBuf,
62  unsigned char* sendSequenceCounter,
63  unsigned char encryptSessionKey[16],
64  unsigned char macSessionKey[16]);
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif // #ifndef ACCESS_SECURE_MESSAGE_H_