CSP Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table describes the CSP functions. Each function in the table corresponds directly to a CryptoAPI function.

Function Description

CPAcquireContext

Acquires a handle to a particular key container within the CSP.

CryptCreateHash

Creates a hash object and returns a handle to it.

CryptDecrypt

Decrypts a section of ciphertext using the specified encryption key.

CryptDeriveKey

Creates a key from a password.

CryptDestroyHash

Destroys a hash object.

CryptDestroyKey

Destroys a key.

CryptDuplicateHash

Makes an exact copy of a hash object and the state the hash is in.

CryptDuplicateKey

Makes an exact copy of a key, including the state of a key.

CryptEncrypt

Encrypts a section of plaintext using the specified encryption key.

CryptExportKey

Transfers a key from the CSP into a key BLOB in the application's memory.

CryptGenKey

Creates a random key.

CryptGenRandom

Generates random data.

CryptGetHashParam

Retrieves a hash object parameter.

CryptGetKeyParam

Retrieves a key's parameters.

CryptGetProvParam

Retrieves attributes of the CSP.

CryptGetUserKey

Gets a handle to the key exchange or signature key.

CryptHashData

Hashes a block of data and adds it to the specified hash object.

CryptHashSessionKey

Hashes a session key and adds it to the specified hash object.

CryptImportKey

Transfers a key from a key BLOB to a CSP.

CryptReleaseContext

Frees the handle acquired by CPAcquireContext.

CryptSetHashParam

Sets a hash object parameter.

CryptSetKeyParam

Specifies a key's parameters.

CryptSetProvParam

Sets specific attributes of a CSP.

CryptSignHash

Signs the specified hash object.

CryptVerifySignature

Verifies a digital signature.

See Also

Concepts

Smart Card CSP