AusweisApp
Lade ...
Suche ...
Keine Treffer
CipherMac.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "SecurityProtocol.h"
12
13#include <QByteArray>
14#include <openssl/evp.h>
15
16namespace governikus
17{
18
20{
22
23 private:
24#if OPENSSL_VERSION_NUMBER < 0x30000000L
25 EVP_PKEY * mKey;
26
27#else
29 EVP_MAC_CTX* mCtx;
30#endif
31
32 public:
40 ~CipherMac();
41
45 [[nodiscard]] bool isInitialized() const;
46
53};
54
55} // namespace governikus
Definition CipherMac.h:20
QByteArray generate(const QByteArray &pMessage)
Generates the MAC of a message.
Definition CipherMac.cpp:106
CipherMac(const SecurityProtocol &pSecurityProtocol, const QByteArray &pKeyBytes)
Creates a new instance with cipher algorithm determined by parameter and specified MAC key.
Definition CipherMac.cpp:16
bool isInitialized() const
Returns true, if initialization succeeded, i.e.
Definition CipherMac.cpp:94
~CipherMac()
Definition CipherMac.cpp:83
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114