Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QCryptographicHashPrivate Class Reference
+ Collaboration diagram for QCryptographicHashPrivate:

Classes

union  State
 

Public Member Functions

 QCryptographicHashPrivate (QCryptographicHash::Algorithm method) noexcept
 
 ~QCryptographicHashPrivate ()
 
void reset () noexcept
 
void addData (QByteArrayView bytes) noexcept
 
bool addData (QIODevice *dev)
 
void finalize () noexcept
 
void finalizeUnchecked () noexcept
 
QByteArrayView resultView () const noexcept
 

Static Public Member Functions

static bool supportsAlgorithm (QCryptographicHash::Algorithm method)
 

Public Attributes

union QCryptographicHashPrivate::State state
 
QBasicMutex finalizeMutex
 
HashResult result
 
const QCryptographicHash::Algorithm method
 

Detailed Description

Definition at line 295 of file qcryptographichash.cpp.

Constructor & Destructor Documentation

◆ QCryptographicHashPrivate()

QCryptographicHashPrivate::QCryptographicHashPrivate ( QCryptographicHash::Algorithm  method)
inlineexplicitnoexcept

Definition at line 298 of file qcryptographichash.cpp.

◆ ~QCryptographicHashPrivate()

QCryptographicHashPrivate::~QCryptographicHashPrivate ( )
inline

Definition at line 302 of file qcryptographichash.cpp.

References method, and state.

Member Function Documentation

◆ addData() [1/2]

void QCryptographicHashPrivate::addData ( QByteArrayView  bytes)
noexcept

Definition at line 801 of file qcryptographichash.cpp.

References QCryptographicHashPrivate::State::addData(), method, and state.

Referenced by QMessageAuthenticationCode::addData(), addData(), QMessageAuthenticationCode::addData(), QMessageAuthenticationCodePrivate::finalizeUnchecked(), QMessageAuthenticationCode::hash(), QMessageAuthenticationCodePrivate::initMessageHash(), and QMessageAuthenticationCodePrivate::setKey().

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

◆ addData() [2/2]

bool QCryptographicHashPrivate::addData ( QIODevice dev)

Definition at line 915 of file qcryptographichash.cpp.

References addData(), and device.

+ Here is the call graph for this function:

◆ finalize()

void QCryptographicHashPrivate::finalize ( )
noexcept

Calls finalizeUnchecked(), if needed, under finalizeMutex protection.

Definition at line 966 of file qcryptographichash.cpp.

References finalizeMutex, finalizeUnchecked(), and lock.

+ Here is the call graph for this function:

◆ finalizeUnchecked()

void QCryptographicHashPrivate::finalizeUnchecked ( )
noexcept

Must be called with finalizeMutex held (except from static hash() function, where no sharing can take place).

Definition at line 981 of file qcryptographichash.cpp.

References QCryptographicHashPrivate::State::finalizeUnchecked(), method, and state.

Referenced by finalize(), QMessageAuthenticationCodePrivate::finalizeUnchecked(), and QMessageAuthenticationCodePrivate::setKey().

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

◆ reset()

void QCryptographicHashPrivate::reset ( )
noexcept

Definition at line 678 of file qcryptographichash.cpp.

References method, QCryptographicHashPrivate::State::reset(), and state.

Referenced by QCryptographicHashPrivate::State::State(), QMessageAuthenticationCodePrivate::finalizeUnchecked(), QCryptographicHash::reset(), QMessageAuthenticationCode::reset(), and QMessageAuthenticationCodePrivate::setKey().

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

◆ resultView()

QByteArrayView QCryptographicHashPrivate::resultView ( ) const
inlinenoexcept

Definition at line 315 of file qcryptographichash.cpp.

Referenced by QMessageAuthenticationCode::hash(), QCryptographicHash::result(), and QMessageAuthenticationCode::resultView().

+ Here is the caller graph for this function:

◆ supportsAlgorithm()

Member Data Documentation

◆ finalizeMutex

QBasicMutex QCryptographicHashPrivate::finalizeMutex

◆ method

◆ result

◆ state

union QCryptographicHashPrivate::State QCryptographicHashPrivate::state

Referenced by addData(), finalizeUnchecked(), and reset().


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