libyal / libbde

Library and tools to access the BitLocker Drive Encryption (BDE) encrypted volumes
GNU Lesser General Public License v3.0
214 stars 52 forks source link

WinCrypt slows down libbde_metadata_read_volume_master_key #21

Closed YoMission closed 5 years ago

YoMission commented 6 years ago

This library cost about 2 minutes to calculate the encrypted_context at the function libbde_metadata_read_volume_master_key. So is there any solutions to optimize?

joachimmetz commented 6 years ago

are you running into this issue by any chance? https://github.com/libyal/libcaes/issues/1

could you try adding WINVER=0x501

YoMission commented 6 years ago

By setting WINVER to 0x0501, the program will not run into that issue. Thanks a lot! And what's more, why using Wincrypt provides such a horribly running time.

joachimmetz commented 6 years ago

And what's more, why using Wincrypt provides such a horribly running time.

This is something I need to look into when time permits. Current hypothesis this has to do how the wincrypt API is used by libcaes.

YoMission commented 6 years ago

Thanks my codeing master. Hope that we can find the reason.

joachimmetz commented 5 years ago

Removing WinCrypt support, seeing it is deprecated https://github.com/libyal/libcaes/issues/10