AusweisApp
Lade ...
Suche ...
Keine Treffer
GeneralAuthenticateResponse.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "ResponseApdu.h"
9
10
11namespace governikus
12{
13
15{
16 private:
17 ResponseApdu mResponseApdu;
18
19 protected:
20 [[nodiscard]] bool isValid() const;
22
23 public:
25 [[nodiscard]] bool isEmpty() const;
26 [[nodiscard]] SW1 getSW1() const;
27 [[nodiscard]] int getRetryCounter() const;
28};
29
30
38{
39 ASN1_OCTET_STRING* mEncryptedNonce;
40};
42
43
46{
47 private:
48 void parseDynamicAuthenticationData();
49 QByteArray mEncryptedNonce;
50
51 public:
53 [[nodiscard]] const QByteArray& getEncryptedNonce() const;
54};
55
56
64{
65 ASN1_OCTET_STRING* mMappingData;
66};
68
69
72{
73 private:
74 void parseDynamicAuthenticationData();
75 QByteArray mMappingData;
76
77 public:
79 [[nodiscard]] const QByteArray& getMappingData() const;
80};
81
82
90{
91 ASN1_OCTET_STRING* mEphemeralPublicKey;
92};
94
95
98{
99 private:
100 void parseDynamicAuthenticationData();
101 QByteArray mEphemeralPublicKey;
102
103 public:
105 [[nodiscard]] const QByteArray& getEphemeralPublicKey() const;
106};
107
108
118{
119 ASN1_OCTET_STRING* mAuthenticationToken;
120 ASN1_OCTET_STRING* mCarCurr;
121 ASN1_OCTET_STRING* mCarPrev;
122};
124
125
128{
129 private:
130 void parseDynamicAuthenticationData();
131 QByteArray mAuthenticationToken;
132 QByteArray mCarCurr;
133 QByteArray mCarPrev;
134
135 public:
137 [[nodiscard]] const QByteArray& getAuthenticationToken() const;
138 [[nodiscard]] const QByteArray& getCarCurr() const;
139 [[nodiscard]] const QByteArray& getCarPrev() const;
140};
141
142
151{
152 ASN1_OCTET_STRING* mNonce;
153 ASN1_OCTET_STRING* mAuthenticationToken;
154};
156
157
160{
161 private:
162 void parseDynamicAuthenticationData();
163 QByteArray mNonce;
164 QByteArray mAuthenticationToken;
165
166 public:
168 [[nodiscard]] const QByteArray& getNonce() const;
169 [[nodiscard]] const QByteArray& getAuthenticationToken() const;
170};
171
172
173} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:175
Definition GeneralAuthenticateResponse.h:160
Definition GeneralAuthenticateResponse.h:46
Definition GeneralAuthenticateResponse.h:72
Definition GeneralAuthenticateResponse.h:128
Definition GeneralAuthenticateResponse.h:98
Definition GeneralAuthenticateResponse.h:15
int getRetryCounter() const
Definition GeneralAuthenticateResponse.cpp:51
SW1 getSW1() const
Definition GeneralAuthenticateResponse.cpp:45
bool isEmpty() const
Definition GeneralAuthenticateResponse.cpp:39
bool isValid() const
Definition GeneralAuthenticateResponse.cpp:27
GAResponseApdu(const ResponseApdu &pResponseApdu)
Definition GeneralAuthenticateResponse.cpp:17
QByteArray getResponseData() const
Definition GeneralAuthenticateResponse.cpp:33
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
struct ga_performkeyagreementdata_st { ASN1_OCTET_STRING *mEphemeralPublicKey;} GA_PERFORMKEYAGREEMENTDATA
According to TR-03110-3 the ASN.1 the response APDU has one protocol specific data:
Definition GeneralAuthenticateResponse.h:89
struct ga_mapnoncedata_st { ASN1_OCTET_STRING *mMappingData;} GA_MAPNONCEDATA
According to TR-03110-3 the ASN.1 the response APDU has one protocol specific data:
Definition GeneralAuthenticateResponse.h:63
struct ga_mutualauthenticationdata_st { ASN1_OCTET_STRING *mAuthenticationToken; ASN1_OCTET_STRING *mCarCurr; ASN1_OCTET_STRING *mCarPrev;} GA_MUTUALAUTHENTICATIONDATA
According to TR-03110-3 the ASN.1 the response APDU has three protocol specific data:
Definition GeneralAuthenticateResponse.h:117
struct ga_encryptednoncedata_st { ASN1_OCTET_STRING *mEncryptedNonce;} GA_ENCRYPTEDNONCEDATA
According to TR-03110-3 the ASN.1 the response APDU has one protocol specific data:
Definition GeneralAuthenticateResponse.h:37
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:112
struct ga_chipauthenticationdata_st { ASN1_OCTET_STRING *mNonce; ASN1_OCTET_STRING *mAuthenticationToken;} GA_CHIPAUTHENTICATIONDATA
According to TR-03110-3 the ASN.1 the response APDU has three protocol specific data:
Definition GeneralAuthenticateResponse.h:150