6 #ifndef SWIFT_CORE_AFV_CRYPTO_CRYPTODTOCHANNEL_H
7 #define SWIFT_CORE_AFV_CRYPTO_CRYPTODTOCHANNEL_H
16 namespace swift::core::afv::crypto
41 bool contains(uint sequence)
const;
42 uint getMin(
int &minIndex)
const;
44 QByteArray m_aeadTransmitKey;
45 QByteArray m_aeadReceiveKey;
47 uint m_transmitSequence = 0;
48 QVector<uint> m_receiveSequenceHistory;
49 int m_receiveSequenceHistoryDepth;
50 int m_receiveSequenceSizeMaxSize;
54 QDateTime m_LastTransmitUtc;
55 QDateTime m_lastReceiveUtc;
QByteArray getReceiveKey(CryptoDtoMode mode)
Receiver key.
bool checkReceivedSequence(uint sequenceReceived)
check the received sequence
QByteArray getTransmitKey(CryptoDtoMode mode)
Transmit key.
CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize=10)
Ctor.
QString getChannelTag() const
Channel tag.