![]() |
Qt 6.x
The Qt SDK
|
Public Types | |
enum class | Sha3Variant { Sha3 , Keccak } |
Public Member Functions | |
State (QCryptographicHash::Algorithm method) | |
void | destroy (QCryptographicHash::Algorithm method) |
void | reset (QCryptographicHash::Algorithm method) noexcept |
void | addData (QCryptographicHash::Algorithm method, QByteArrayView data) noexcept |
void | finalizeUnchecked (QCryptographicHash::Algorithm method, HashResult &result) noexcept |
void | sha3Finish (HashResult &result, int bitCount, Sha3Variant sha3Variant) |
Public Attributes | |
Sha1State | sha1Context |
MD5Context | md5Context |
md4_context | md4Context |
SHA224Context | sha224Context |
SHA256Context | sha256Context |
SHA384Context | sha384Context |
SHA512Context | sha512Context |
SHA3Context | sha3Context |
blake2b_state | blake2bContext |
blake2s_state | blake2sContext |
Definition at line 342 of file qcryptographichash.cpp.
|
strong |
Enumerator | |
---|---|
Sha3 | |
Keccak |
Definition at line 366 of file qcryptographichash.cpp.
|
explicit |
Definition at line 613 of file qcryptographichash.cpp.
References QCryptographicHash::Blake2b_160, QCryptographicHash::Blake2b_256, QCryptographicHash::Blake2b_384, QCryptographicHash::Blake2b_512, blake2bContext, QCryptographicHash::Blake2s_128, QCryptographicHash::Blake2s_160, QCryptographicHash::Blake2s_224, QCryptographicHash::Blake2s_256, blake2sContext, QCryptographicHash::Keccak_224, QCryptographicHash::Keccak_256, QCryptographicHash::Keccak_384, QCryptographicHash::Keccak_512, QCryptographicHash::Md4, md4Context, QCryptographicHash::Md5, md5Context, QCryptographicHashPrivate::method, QCryptographicHash::NumAlgorithms, Q_ASSERT_X, QCryptographicHash::RealSha3_224, QCryptographicHash::RealSha3_256, QCryptographicHash::RealSha3_384, QCryptographicHash::RealSha3_512, QCryptographicHashPrivate::reset(), QCryptographicHash::Sha1, sha1Context, QCryptographicHash::Sha224, sha224Context, QCryptographicHash::Sha256, sha256Context, QCryptographicHash::Sha384, sha384Context, sha3Context, QCryptographicHash::Sha512, and sha512Context.
|
noexcept |
Definition at line 832 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, QCryptographicHashPrivate::method, QCryptographicHash::NumAlgorithms, Q_ASSERT_X, qMin(), QCryptographicHash::RealSha3_224, QCryptographicHash::RealSha3_256, QCryptographicHash::RealSha3_384, QCryptographicHash::RealSha3_512, QCryptographicHash::Sha1, QCryptographicHash::Sha224, QCryptographicHash::Sha256, QCryptographicHash::Sha384, sha3Update, and QCryptographicHash::Sha512.
Referenced by QCryptographicHashPrivate::addData().
void QCryptographicHashPrivate::State::destroy | ( | QCryptographicHash::Algorithm | method | ) |
Definition at line 672 of file qcryptographichash.cpp.
|
noexcept |
Definition at line 1021 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, copy(), hashLengthInternal(), QCryptographicHash::Keccak_224, QCryptographicHash::Keccak_256, QCryptographicHash::Keccak_384, QCryptographicHash::Keccak_512, QCryptographicHash::Md4, QCryptographicHash::Md5, QCryptographicHashPrivate::method, QCryptographicHash::NumAlgorithms, Q_ASSERT_X, 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 QCryptographicHashPrivate::finalizeUnchecked().
|
noexcept |
Definition at line 715 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, hashLengthInternal(), QCryptographicHash::Keccak_224, QCryptographicHash::Keccak_256, QCryptographicHash::Keccak_384, QCryptographicHash::Keccak_512, QCryptographicHash::Md4, QCryptographicHash::Md5, QCryptographicHashPrivate::method, QCryptographicHash::NumAlgorithms, Q_ASSERT_X, QCryptographicHash::RealSha3_224, QCryptographicHash::RealSha3_256, QCryptographicHash::RealSha3_384, QCryptographicHash::RealSha3_512, QCryptographicHash::Sha1, QCryptographicHash::Sha224, QCryptographicHash::Sha256, QCryptographicHash::Sha384, sha3Init, and QCryptographicHash::Sha512.
Referenced by QCryptographicHashPrivate::reset().
void QCryptographicHashPrivate::State::sha3Finish | ( | HashResult & | result, |
int | bitCount, | ||
Sha3Variant | sha3Variant | ||
) |
Definition at line 382 of file qcryptographichash.cpp.
References copy(), Keccak, Sha3, sha3Context, sha3Final, and sha3Update.
blake2b_state QCryptographicHashPrivate::State::blake2bContext |
Definition at line 369 of file qcryptographichash.cpp.
Referenced by State().
blake2s_state QCryptographicHashPrivate::State::blake2sContext |
Definition at line 370 of file qcryptographichash.cpp.
Referenced by State().
md4_context QCryptographicHashPrivate::State::md4Context |
Definition at line 359 of file qcryptographichash.cpp.
Referenced by State().
MD5Context QCryptographicHashPrivate::State::md5Context |
Definition at line 358 of file qcryptographichash.cpp.
Referenced by State().
Sha1State QCryptographicHashPrivate::State::sha1Context |
Definition at line 353 of file qcryptographichash.cpp.
Referenced by State().
SHA224Context QCryptographicHashPrivate::State::sha224Context |
Definition at line 360 of file qcryptographichash.cpp.
Referenced by State().
SHA256Context QCryptographicHashPrivate::State::sha256Context |
Definition at line 361 of file qcryptographichash.cpp.
Referenced by State().
SHA384Context QCryptographicHashPrivate::State::sha384Context |
Definition at line 362 of file qcryptographichash.cpp.
Referenced by State().
SHA3Context QCryptographicHashPrivate::State::sha3Context |
Definition at line 364 of file qcryptographichash.cpp.
Referenced by State(), and sha3Finish().
SHA512Context QCryptographicHashPrivate::State::sha512Context |
Definition at line 363 of file qcryptographichash.cpp.
Referenced by State().