CSP Functions
The following table describes the CSP functions. Each function in the table corresponds directly to a CryptoAPI function with the suffix Crypt instead of CP. For example, CPCreateHash is the same as CryptCreateHash.
Function | Description |
---|---|
CPAcquireContext | Acquires a handle to a particular key container within the CSP. |
CPCreateHash | Creates a hash object and returns a handle to it. |
CPDecrypt | Decrypts a section of ciphertext using the specified encryption key. |
CPDeriveKey | Creates a key from a password. |
CPDestroyHash | Destroys a hash object. |
CPDestroyKey | Destroys a key. |
CPDuplicateHash | Makes an exact copy of a hash object and the state the hash is in. |
CPDuplicateKey | Makes an exact copy of a key, including the state of a key. |
CPEncrypt | Encrypts a section of plaintext using the specified encryption key. |
CPExportKey | Transfers a key from the CSP into a key BLOB in the application's memory. |
CPGenKey | Creates a random key. |
CPGenRandom | Generates random data. |
CPGetHashParam | Retrieves a hash object parameter. |
CPGetKeyParam | Retrieves a key's parameters. |
CPGetProvParam | Retrieves attributes of the CSP. |
CPGetUserKey | Gets a handle to the key exchange or signature key. |
CPHashData | Hashes a block of data and adds it to the specified hash object. |
CPHashSessionKey | Hashes a session key and adds it to the specified hash object. |
CPImportKey | Transfers a key from a key BLOB to a CSP. |
CPReleaseContext | Frees the handle acquired by CPAcquireContext. |
CPSetHashParam | Sets a hash object parameter. |
CPSetKeyParam | Specifies a key's parameters. |
CPSetProvParam | Sets specific attributes of a CSP. |
CPSignHash | Signs the specified hash object. |
CPVerifySignature | Verifies a digital signature. |
See Also
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.