0

I learn about WIN API methods responsible for secure storage. I read about CryptoAPI and DPAPI:

"The public DPAPI interfaces are part of Crypt32.dll and are available for any user process that has loaded it. This DLL is part of CryptoAPI."

So when I want to use CryptProtectData I call CryptProtectData from Crypt32.dll. But when I want to use DPAPI I must call CryptProtectData from Crypt32.dll too. How can I set to use DPAPI or not, to use CryptoAPI or not?

EDIT: How can I know what I do not use DPAPI? And how can I "say" a program to use DPAPI?

RuF
  • 548
  • 1
  • 11
  • 31
  • " *But when I want to use DPAPI I must call CryptProtectData from Crypt32.dll too* " Yes .. can you explain why this is a problem? – Alex K. Jun 23 '14 at 13:27
  • When I use CryptoAPI without DPAPI? How can I know what I do not use DPAPI? And how can I "say" a program to use DPAPI? – RuF Jun 23 '14 at 13:41
  • 1
    If you call either of the two DPAPI functions in Crypt32.dll then your using the DPAPI, if you call other functions your using the CryptoAPI – Alex K. Jun 23 '14 at 13:45
  • I cannot call CryptProtectData what will not use DPAPI. Do I understand correctly? – RuF Jun 23 '14 at 13:49
  • 1
    CryptProtectData is one of the functions labelled as being part of the "DPAPI", there is only one implementation of it – Alex K. Jun 23 '14 at 15:09

0 Answers0