diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-02-23 15:00:42 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-03-02 14:54:09 +0100 |
| commit | 189444d8c4a1384479962e98e699bf1fd2908de8 (patch) | |
| tree | aee959a3e7475661ec4712d80ade011baf8a05da /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | 3b08cbff6998621a288ab87511cb168d93a956a1 (diff) | |
De-pessimize QCryptographicHash::reset() in OpenSSL3 mode
Instead of going through the whole dance with provider loading,
context creation etc, just call EVP_MD_CTX_reset() to reuse the
already-setup context, if any.
This makes QCryptographicHash::reset() adhere to its noexcept
specification again (assuming EVP_MD_CTX_reset() doesn't allocate
state, and, despite its non-void return type, cannot fail on a valid
context), and should greatly improve the speed of reset(), addData(),
resultView() cycles.
Pick-to: 6.5
Change-Id: I7c35b61cbeab1ffd6dd258e8389ea614d49e2e1e
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Jan Grulich <jgrulich@redhat.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
