tt.txt

来自「C++编程实践与技巧一书各章节的源码」· 文本 代码 · 共 26 行

TXT
26
字号
Initialize Client


The INITUSER sample sets up the default cryptographic client. This sample
(or its equivalent) must be run prior to running the other cryptography
samples, so that they will work correctly.

The following operations are performed:

1. A default key container is created.
2. A digital signature key pair is created within the key container.
3. A key exchange key pair is created within the key container.

These operations only need to be done once, unless the operating system
is reinstalled. If the default key container and key pairs have already
been created, this sample performs no operations.

The INITUSER sample uses the following CryptoAPI functions:

    CryptAcquireContext
    CryptGetProvParam
    CryptGenKey
    CryptGetUserKey
    CryptDestroyKey
    CryptReleaseContext

⌨️ 快捷键说明

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