Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 827 of file qcryptographichash.cpp.

References method, and state.

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

+ Here is the caller graph for this function:

◆ addData() [2/2]

bool QCryptographicHashPrivate::addData ( QIODevice * dev)

Definition at line 946 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 997 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 1012 of file qcryptographichash.cpp.

References method, and state.

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

+ Here is the caller graph for this function:

◆ reset()

void QCryptographicHashPrivate::reset ( )
noexcept

Definition at line 699 of file qcryptographichash.cpp.

References method, and state.

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

+ Here is the caller graph for this function:

◆ resultView()

QByteArrayView QCryptographicHashPrivate::resultView ( ) const
inlinenoexcept

Definition at line 315 of file qcryptographichash.cpp.

Referenced by 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: