| Previous | Next |
| STATUS_PCP_INVALID_PARAMETER | STATUS_PCP_NOT_SUPPORTED |
STATUS_PCP_FLAG_NOT_SUPPORTED
Unsupported Platform Crypto Provider flag
STATUS_PCP_FLAG_NOT_SUPPORTED is specific to the option bits supplied to a Platform Crypto Provider operation. In CNG, flags often change persistence, UI, machine/user scope, overwrite behavior, export policy, padding, or provider-specific handling.
For a TPM-backed key provider, unsupported flags are expected when the flag would require behavior the TPM or provider policy cannot implement, such as an export mode, UI mode, or operation variant that is valid only for a software key.
Diagnostic focus
- Record the exact flag mask passed to the failing NCrypt call.
- Retry only after removing or replacing the unsupported flag; changing the key name alone will not help.
- Check whether the failing flag is documented for the target NCrypt function and provider.
References
- Microsoft: CNG key storage providers
- Microsoft: NCryptOpenStorageProvider
- Microsoft: Key storage and retrieval
- Microsoft: TPM Base Services
- Microsoft: COM error codes for TPM, PLA and FVE
Looking for a different code? Search another status or error code.