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>
|
#include <CommonCrypto/CommonDigest.h>
|
||||||
|
|
||||||
struct AcceleratedCryptographicHash::Impl {
|
struct AcceleratedCryptographicHash::impl {
|
||||||
explicit Impl(QCryptographicHash::Algorithm algo) {
|
explicit impl(QCryptographicHash::Algorithm algo) {
|
||||||
if (method != QCryptographicHash::Sha256)
|
if (method != QCryptographicHash::Sha256)
|
||||||
throw std::runtime_error("Only sha256 implemented");
|
throw std::runtime_error("Only sha256 implemented");
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
|
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
|
||||||
|
|
||||||
struct AcceleratedCryptographicHash::Impl {
|
struct AcceleratedCryptographicHash::impl {
|
||||||
explicit Impl(QCryptographicHash::Algorithm algo) {
|
explicit impl(QCryptographicHash::Algorithm algo) {
|
||||||
if (method != QCryptographicHash::Sha256)
|
if (method != QCryptographicHash::Sha256)
|
||||||
throw std::runtime_error("Only sha256 implemented");
|
throw std::runtime_error("Only sha256 implemented");
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ struct AcceleratedCryptographicHash::Impl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~Impl() {
|
~impl() {
|
||||||
cleanup()
|
cleanup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,4 +176,4 @@ void AcceleratedCryptographicHash::addData(const QByteArray &data) {
|
||||||
}
|
}
|
||||||
QByteArray AcceleratedCryptographicHash::result() {
|
QByteArray AcceleratedCryptographicHash::result() {
|
||||||
return p_Impl->result();
|
return p_Impl->result();
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue