Data Encryption Functions Summary

The functions in this section support encryption and decryption operations. Before invoking these functions, you must first acquire an encryption key. This is done using the functions CryptGenKey or CryptDeriveKey, defined in the section Generating Cryptographic Keys, or the function CryptImportKey, defined in the section Exchanging Cryptographic Keys. The encryption algorithm is specified when the key is created. You can also specify additional encryption parameters using the CryptSetKeyParam function.

Function Description
CryptEncrypt Encrypt a section of plaintext using the specified encryption key.
CryptDecrypt Decrypt a section of cipher text using the specified encryption key.