-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of encrypted DMG? #46
Comments
Do you mean FileValut, so using something like this? https://github.com/libyal/libfvde |
This is already implemented here: |
What do you think? |
And here goes this #ifdef COMPILE_WITH_DECRYPTION_SUPPORT
#include "decrypt/EncryptedReader.h"
#endif
#ifdef COMPILE_WITH_DECRYPTION_SUPPORT
DMGDisk::DMGDisk(std::shared_ptr<Reader>reader, const std::string &password)
#else
DMGDisk::DMGDisk(std::shared_ptr<Reader>reader)
#endif
: m_reader(reader), m_zone(40000)
{
#ifdef COMPILE_WITH_DECRYPTION_SUPPORT
if (EncryptedReader::isEncryptedDMG(reader))
{
auto encReader = std::make_shared<EncryptedReader>(m_reader);
if (encReader && encReader->setupEncryptionV2(password))
m_reader = encReader;
else
{
throw std::runtime_error("Invalid password specified");
}
}
#endif |
Looks good to me! |
I'll make a pull request soon then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AES-128 and AES-256. Is it actually possible? Thanks.
The text was updated successfully, but these errors were encountered: