AusweisApp2
SecureMessagingCommand.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "CommandApdu.h"
10 #include "SecureMessagingApdu.h"
11 
12 namespace governikus
13 {
14 
20  : public SecureMessagingApdu
21 {
22  Q_DISABLE_COPY(SecureMessagingCommand)
23 
24  private:
25  QSharedPointer<SM_PROTECTED_LE> mExpectedLength;
26  QSharedPointer<SM_CHECKSUM> mChecksum;
27 
28  public:
29  explicit SecureMessagingCommand(const CommandApdu& pApdu);
30 
34  [[nodiscard]] int getExpectedLength() const;
35 
39  [[nodiscard]] QByteArray getExpectedLengthObjectEncoded() const;
40 
44  [[nodiscard]] QByteArray getMac() const;
45 };
46 
47 
48 } // namespace governikus
Definition: SecureMessagingApdu.h:18
Command APDU for Secure Messaging as defined in TR-03110-3.
Definition: SecureMessagingCommand.h:21
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
SecureMessagingCommand(const CommandApdu &pApdu)
Definition: SecureMessagingCommand.cpp:20
QByteArray getMac() const
Returns the cryptographic checsum.
Definition: SecureMessagingCommand.cpp:82
A simple template renderer.
Definition: ActivationContext.h:15