Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

NCryptOpenStorageProvider function with Key Storage Provider (KSP)

Focus mode
NCryptOpenStorageProvider function with Key Storage Provider (KSP) - AWS CloudHSM

The NCryptOpenStorageProvider function loads and initializes the Key Storage Provider (KSP).

Parameters

phProvider [out]

A pointer to a NCRYPT_PROV_HANDLE variable that stores the provider handle.

pszProviderName [in]

A pointer to a null-terminated Unicode string identifying the key storage provider. AWS CloudHSM Key Storage Provider (KSP) supports the following values:

Value Meaning

L"CloudHSM Key Storage Provider"

Identifies Client SDK 5 provider name. We recommend using this name by default.

L"Cavium Key Storage Provider"

Identifies the Client SDK 3 provider name. Supported for backward compatibility.

Note

Values are wide-character string literal, as indicated by L before the literal.

dwFlags [in]

Flags that modify the behavior of the function. No flags are defined for this function.

Return Value

The function returns a status code to indicate success or failure.

Common return codes include:

Return code Description

ERROR_SUCCESS

The operation completed successfully.

NTE_INVALID_PARAMETER

One or more parameters are not valid.

NTE_FAIL

The operation couldn't complete.

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.