ncrypt.h header

This header is used by Security and Identity. For more information, see:

Aliases

ncrypt.h contains the following programming interfaces:

Functions

 
NCryptCreateClaim

Creates a key attestation claim.
NCryptCreatePersistedKey

Creates a new key and stores it in the specified key storage provider.
NCryptDecrypt

Decrypts a block of encrypted data.
NCryptDeleteKey

Deletes a CNG key from storage.
NCryptDeriveKey

Derives a key from a secret agreement value. (NCryptDeriveKey)
NCryptEncrypt

Encrypts a block of data. (NCryptEncrypt)
NCryptEnumAlgorithms

Obtains the names of the algorithms that are supported by the specified key storage provider.
NCryptEnumKeys

Obtains the names of the keys that are stored by the provider.
NCryptEnumStorageProviders

Obtains the names of the registered key storage providers.
NCryptExportKey

Exports a CNG key to a memory BLOB.
NCryptFinalizeKey

Completes a CNG key storage key.
NCryptFreeBuffer

Releases a block of memory allocated by a CNG key storage provider.
NCryptFreeObject

Frees a CNG key storage object.
NCryptGetProperty

Retrieves the value of a named property for a key storage object.
NCryptImportKey

Imports a Cryptography API:_Next Generation (CNG) key from a memory BLOB.
NCryptIsAlgSupported

Determines if a CNG key storage provider supports a specific cryptographic algorithm.
NCryptIsKeyHandle

Determines if the specified handle is a CNG key handle.
NCryptKeyDerivation

Creates a key from another key by using the specified key derivation function.
NCryptNotifyChangeKey

Creates or removes a key change notification.
NCryptOpenKey

Opens a key that exists in the specified CNG key storage provider.
NCryptOpenStorageProvider

Loads and initializes a CNG key storage provider.
NCryptSecretAgreement

Creates a secret agreement value from a private and a public key. (NCryptSecretAgreement)
NCryptSetProperty

Sets the value for a named property for a CNG key storage object.
NCryptSignHash

Creates a signature of a hash value. (NCryptSignHash)
NCryptTranslateHandle

Translates a CryptoAPI handle into a CNG key handle.
NCryptVerifyClaim

Verifies a key attestation claim.
NCryptVerifySignature

Verifies that the specified signature matches the specified hash. (NCryptVerifySignature)

Structures

 
NCRYPT_ALLOC_PARA

Enables you to specify custom functions that can be used to allocate and free data.
NCRYPT_KEY_BLOB_HEADER

Contains a key BLOB.
NCRYPT_SUPPORTED_LENGTHS

Used with the NCRYPT_LENGTHS_PROPERTY property to contain length information for a key.
NCRYPT_UI_POLICY

Used with the NCRYPT_UI_POLICY_PROPERTY property to contain strong key user interface information for a key.
NCryptAlgorithmName

Used to contain information about a CNG algorithm.
NCryptKeyName

Used to contain information about a CNG key.
NCryptProviderName

Used to contain the name of a CNG key storage provider.