mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
acceleratedcryptographichash: pimpl for macos, windows
This commit is contained in:
parent
103924eff0
commit
5a2815fefc
2 changed files with 6 additions and 6 deletions
|
@ -9,8 +9,8 @@
|
|||
|
||||
#include <CommonCrypto/CommonDigest.h>
|
||||
|
||||
struct AcceleratedCryptographicHash::Impl {
|
||||
explicit Impl(QCryptographicHash::Algorithm algo) {
|
||||
struct AcceleratedCryptographicHash::impl {
|
||||
explicit impl(QCryptographicHash::Algorithm algo) {
|
||||
if (method != QCryptographicHash::Sha256)
|
||||
throw std::runtime_error("Only sha256 implemented");
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
|
||||
|
||||
struct AcceleratedCryptographicHash::Impl {
|
||||
explicit Impl(QCryptographicHash::Algorithm algo) {
|
||||
struct AcceleratedCryptographicHash::impl {
|
||||
explicit impl(QCryptographicHash::Algorithm algo) {
|
||||
if (method != QCryptographicHash::Sha256)
|
||||
throw std::runtime_error("Only sha256 implemented");
|
||||
|
||||
|
@ -89,7 +89,7 @@ struct AcceleratedCryptographicHash::Impl {
|
|||
}
|
||||
}
|
||||
|
||||
~Impl() {
|
||||
~impl() {
|
||||
cleanup()
|
||||
}
|
||||
|
||||
|
@ -176,4 +176,4 @@ void AcceleratedCryptographicHash::addData(const QByteArray &data) {
|
|||
}
|
||||
QByteArray AcceleratedCryptographicHash::result() {
|
||||
return p_Impl->result();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue