Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
LeCmacCalculator Class Reference

#include <lecmaccalculator_p.h>

+ Collaboration diagram for LeCmacCalculator:

Public Member Functions

 LeCmacCalculator ()
 
 ~LeCmacCalculator ()
 
quint64 calculateMac (const QByteArray &message, QUuid::Id128Bytes csrk) const
 
bool verify (const QByteArray &message, QUuid::Id128Bytes csrk, quint64 expectedMac) const
 

Static Public Member Functions

static QByteArray createFullMessage (const QByteArray &message, quint32 signCounter)
 

Detailed Description

Definition at line 22 of file lecmaccalculator_p.h.

Constructor & Destructor Documentation

◆ LeCmacCalculator()

QT_BEGIN_NAMESPACE LeCmacCalculator::LeCmacCalculator ( )

Definition at line 24 of file lecmaccalculator.cpp.

References bind(), qCWarning, and socket.

+ Here is the call graph for this function:

◆ ~LeCmacCalculator()

LeCmacCalculator::~LeCmacCalculator ( )

Definition at line 48 of file lecmaccalculator.cpp.

Member Function Documentation

◆ calculateMac()

quint64 LeCmacCalculator::calculateMac ( const QByteArray message,
QUuid::Id128Bytes  csrk 
) const

Definition at line 63 of file lecmaccalculator.cpp.

References QByteArray::begin(), QByteArray::constData(), QUuid::Id128Bytes::data, Q_UNUSED, qCDebug, qCWarning, qFromBigEndian(), qt_safe_read(), qt_safe_write(), QByteArray::size(), socket, QByteArray::toHex(), and Qt::Uninitialized.

Referenced by verify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFullMessage()

QByteArray LeCmacCalculator::createFullMessage ( const QByteArray message,
quint32  signCounter 
)
static

Definition at line 54 of file lecmaccalculator.cpp.

References QByteArray::data(), putBtData(), QByteArray::resize(), and QByteArray::size().

+ Here is the call graph for this function:

◆ verify()

bool LeCmacCalculator::verify ( const QByteArray message,
QUuid::Id128Bytes  csrk,
quint64  expectedMac 
) const

Definition at line 130 of file lecmaccalculator.cpp.

References calculateMac(), Qt::hex(), Q_UNUSED, and qCWarning.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: