Skip to content
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

Fix naming of KULL_DPAPI_BLOB #422

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

poshul
Copy link

@poshul poshul commented Mar 3, 2023

the pbHmackKey member actually stores the AUX_INFO for the algorithm above. See the pvEncryptionAuxInfo section of https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/ns-wincrypt-crypt_encrypt_message_para for details.

See this example where it stores the "salt" for an RC4 key:
algCrypt : 00006801 - 26625 (CALG_RC4)
dwAlgCryptLen : 00000028 - 40
dwSaltLen : 00000010 - 16
pbSalt : 7714b66f32c090777c36d5fbc7f123c3
dwHmacKeyLen : 0000000b - 11
pbHmackKey : 1dee397af8bf2f227d7940

the pbHmackKey member actually stores the AUX_INFO for the algorithm above. See the pvEncryptionAuxInfo section of https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/ns-wincrypt-crypt_encrypt_message_para for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant