AusweisApp
Lade ...
Suche ...
Keine Treffer
SecureMessagingCommand.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7
8#include "CommandApdu.h"
10
11
12class test_SecureMessaging;
13
14
15namespace governikus
16{
17
23 : public SecureMessagingApdu
24{
25 Q_DISABLE_COPY(SecureMessagingCommand)
26 friend class ::test_SecureMessaging;
27
28 private:
29 QSharedPointer<SM_PROTECTED_LE> mExpectedLength;
30 QSharedPointer<SM_CHECKSUM> mChecksum;
31
32 public:
33 explicit SecureMessagingCommand(const CommandApdu& pApdu);
34
38 [[nodiscard]] int getExpectedLength() const;
39
43 [[nodiscard]] QByteArray getExpectedLengthObjectEncoded() const;
44
48 [[nodiscard]] QByteArray getMac() const;
49};
50
51
52} // namespace governikus
Definition SecureMessagingApdu.h:16
Command APDU for Secure Messaging as defined in TR-03110-3.
Definition SecureMessagingCommand.h:24
friend class ::test_SecureMessaging
Definition SecureMessagingCommand.h:26
QByteArray getExpectedLengthObjectEncoded() const
Returns the encoded ASN.1 object containing the expected length.
Definition SecureMessagingCommand.cpp:76
int getExpectedLength() const
Returns the expected length.
Definition SecureMessagingCommand.cpp:48
QByteArray getMac() const
Returns the cryptographic checksum.
Definition SecureMessagingCommand.cpp:82
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
Message part of the Secure Messaging command/response APDU containing the cryptographic checksum.
Definition SecureMessagingTypes.h:46
Message part of the Secure Messaging command APDU containing the expected length.
Definition SecureMessagingTypes.h:28