⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.h

📁 windows的加密api源码
💻 H
字号:
/* user.h */

/*********************************/
/* Definitions                   */
/*********************************/

   
/*********************************/
/* Structure Definitions         */
/*********************************/


/*********************************/
/* Function Definitions          */
/*********************************/

BOOL logonUser (char *pszUserID, DWORD dwFlags, DWORD dwProvType, HCRYPTPROV *phUID);
BOOL logoffUser (Context_t *context);

// Read the user record
DWORD readUserKeys (
                    IN Context_t *pContext,
                    IN DWORD dwKeysetType
                    );

DWORD writeUserKeys (Context_t *context);

//
// Routine : ProtectPrivKey
//
// Description : Encrypts the private key and persistently stores it.
//

DWORD ProtectPrivKey(
                     IN OUT Context_t *pContext,
                     IN LPWSTR szPrompt,
                     IN DWORD dwFlags,
                     IN BOOL fSigKey
                     );

//
// Routine : UnprotectPrivKey
//
// Description : Decrypts the private key.  If the fAlwaysDecrypt flag is set
//               then it checks if the private key is already in the buffer
//               and if so then it does not decrypt.
//

DWORD UnprotectPrivKey(
                       IN OUT Context_t *pContext,
                       IN LPWSTR szPrompt,
                       IN BOOL fSigKey,
                       IN BOOL fAlwaysDecrypt
                       );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -