Commit graph

6 commits

Author SHA1 Message Date
melvyn2
8e53929d94 Fix buffer allocation/zeroing bugs, use clearer variable names 2022-07-31 10:25:07 +02:00
melvyn2
2b989f21e9 Read wide-string username before decoding to ascii string for entropy 2022-07-31 10:25:07 +02:00
melvyn2
2894faac2a Read regkey username before using GetUserName fallback
If the user has changed their username after the authorization key has been created, then GetUserName will return the new username which can't decrypt the key. The username at the time of authorization should be stored at `HKEY_CURRENT_USER\Software\\Adobe\\Adept\\Device`, which we first attempt to read before falling back if it doesn't exist.
2022-07-31 10:25:07 +02:00
melvyn2
0cb13b9d38 Move all win32 logic to wine executable
Actions like reading the registry and serial number were being done in python even though the final decryption was done in wine. This commit moves all windows logic except architecture detection into the exe ran under wine to simplify the architecture.
2022-07-31 10:25:07 +02:00
Florian Bach
964d4c06eb Try to reduce AV false-positives 2022-01-05 21:44:15 +01:00
Florian Bach
f7eb9e5d79 Beta 3: Support for importing from Wine 2021-11-25 09:15:37 +01:00
Renamed from calibre-plugin/key-wine/main.c (Browse further)