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
QMessageAuthenticationCodePrivate Class Reference
+ Collaboration diagram for QMessageAuthenticationCodePrivate:

Public Member Functions

 QMessageAuthenticationCodePrivate (QCryptographicHash::Algorithm m)
 
void setKey (QByteArrayView k) noexcept
 
void initMessageHash () noexcept
 
void finalize ()
 
void finalizeUnchecked () noexcept
 

Public Attributes

HashBlock key
 
QCryptographicHashPrivate messageHash
 

Detailed Description

Definition at line 1338 of file qcryptographichash.cpp.

Constructor & Destructor Documentation

◆ QMessageAuthenticationCodePrivate()

QMessageAuthenticationCodePrivate::QMessageAuthenticationCodePrivate ( QCryptographicHash::Algorithm m)
inline

Definition at line 1341 of file qcryptographichash.cpp.

Member Function Documentation

◆ finalize()

void QMessageAuthenticationCodePrivate::finalize ( )

Definition at line 1614 of file qcryptographichash.cpp.

References QCryptographicHashPrivate::finalizeMutex, finalizeUnchecked(), lock, messageHash, and QCryptographicHashPrivate::result.

Referenced by QMessageAuthenticationCode::resultView().

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

◆ finalizeUnchecked()

void QMessageAuthenticationCodePrivate::finalizeUnchecked ( )
noexcept

Definition at line 1622 of file qcryptographichash.cpp.

References QCryptographicHashPrivate::addData(), QCryptographicHashPrivate::finalizeUnchecked(), messageHash, QCryptographicHashPrivate::reset(), QCryptographicHashPrivate::result, and xored().

Referenced by finalize().

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

◆ initMessageHash()

void QMessageAuthenticationCodePrivate::initMessageHash ( )
noexcept

Seeds messageHash from key.

This function assumes that messageHash is in its initial state (reset() has been called).

Definition at line 1403 of file qcryptographichash.cpp.

References QCryptographicHashPrivate::addData(), and xored().

Referenced by QMessageAuthenticationCode::reset().

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

◆ setKey()

void QMessageAuthenticationCodePrivate::setKey ( QByteArrayView newKey)
noexcept

Transforms key newKey into a block-sized format and stores it in member key.

This function assumes it can use messageHash (i.e. it's in its initial state (reset() has been called)).

Definition at line 1368 of file qcryptographichash.cpp.

References A, QCryptographicHashPrivate::addData(), blockSize, QCryptographicHashPrivate::finalizeUnchecked(), hashLengthInternal(), i, QCryptographicHashPrivate::method, qt_hash_block_size(), QCryptographicHashPrivate::reset(), and QCryptographicHashPrivate::result.

Referenced by QMessageAuthenticationCode::QMessageAuthenticationCode().

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

Member Data Documentation

◆ key

HashBlock QMessageAuthenticationCodePrivate::key

Definition at line 1346 of file qcryptographichash.cpp.

◆ messageHash


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