blob: f279afcab93122048f8cbff100426389be224e56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef TC_HEADER_Common_ResponseAPDU
#define TC_HEADER_Common_ResponseAPDU
#include "Platform/PlatformBase.h"
namespace VeraCrypt
{
class ResponseAPDU
{
protected:
vector<uint8> m_data;
uint16 m_SW;
public:
void clear();
ResponseAPDU();
ResponseAPDU(const vector<uint8>& data, uint16 SW);
uint32 getNr();
const vector<uint8> getData();
uint8 getSW1();
uint8 getSW2();
uint16 getSW();
const vector<uint8> getBytes();
void setSW(uint16 SW);
void setBytes(const vector<uint8>& bytes);
void appendData(const vector<uint8>& data);
void appendData(const uint8* data, size_t dataLen);
};
};
#endif // TC_HEADER_Common_ResponseAPDU
|