![]() |
Qt 6.x
The Qt SDK
|
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 |
Definition at line 295 of file qcryptographichash.cpp.
|
inlineexplicitnoexcept |
Definition at line 298 of file qcryptographichash.cpp.
|
inline |
Definition at line 302 of file qcryptographichash.cpp.
|
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().
bool QCryptographicHashPrivate::addData | ( | QIODevice * | dev | ) |
Definition at line 915 of file qcryptographichash.cpp.
References addData(), and device.
|
noexcept |
Calls finalizeUnchecked(), if needed, under finalizeMutex protection.
Definition at line 966 of file qcryptographichash.cpp.
References finalizeMutex, finalizeUnchecked(), and lock.
|
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().
|
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().
|
inlinenoexcept |
Definition at line 315 of file qcryptographichash.cpp.
Referenced by QMessageAuthenticationCode::hash(), QCryptographicHash::result(), and QMessageAuthenticationCode::resultView().
|
static |
Definition at line 1157 of file qcryptographichash.cpp.
References QCryptographicHash::Blake2b_160, QCryptographicHash::Blake2b_256, QCryptographicHash::Blake2b_384, QCryptographicHash::Blake2b_512, QCryptographicHash::Blake2s_128, QCryptographicHash::Blake2s_160, QCryptographicHash::Blake2s_224, QCryptographicHash::Blake2s_256, QCryptographicHash::Keccak_224, QCryptographicHash::Keccak_256, QCryptographicHash::Keccak_384, QCryptographicHash::Keccak_512, QCryptographicHash::Md4, QCryptographicHash::Md5, method, QCryptographicHash::NumAlgorithms, QCryptographicHash::RealSha3_224, QCryptographicHash::RealSha3_256, QCryptographicHash::RealSha3_384, QCryptographicHash::RealSha3_512, QCryptographicHash::Sha1, QCryptographicHash::Sha224, QCryptographicHash::Sha256, QCryptographicHash::Sha384, and QCryptographicHash::Sha512.
Referenced by QCryptographicHash::supportsAlgorithm().
QBasicMutex QCryptographicHashPrivate::finalizeMutex |
Definition at line 374 of file qcryptographichash.cpp.
Referenced by QMessageAuthenticationCodePrivate::finalize(), and finalize().
const QCryptographicHash::Algorithm QCryptographicHashPrivate::method |
Definition at line 377 of file qcryptographichash.cpp.
Referenced by QCryptographicHashPrivate::State::State(), addData(), QCryptographicHashPrivate::State::addData(), QCryptographicHash::algorithm(), finalizeUnchecked(), QCryptographicHashPrivate::State::finalizeUnchecked(), QCryptographicHash::hash(), QCryptographicHash::hashLength(), qt_hash_block_size(), reset(), QCryptographicHashPrivate::State::reset(), QMessageAuthenticationCodePrivate::setKey(), QCryptographicHash::supportsAlgorithm(), and supportsAlgorithm().
HashResult QCryptographicHashPrivate::result |
Definition at line 375 of file qcryptographichash.cpp.
Referenced by QMessageAuthenticationCodePrivate::finalize(), QMessageAuthenticationCodePrivate::finalizeUnchecked(), gcdHashBlockSize(), maxHashBlockSize(), minHashBlockSize(), QMessageAuthenticationCodePrivate::setKey(), and xored().
union QCryptographicHashPrivate::State QCryptographicHashPrivate::state |
Referenced by addData(), finalizeUnchecked(), and reset().