| Previous | Next |
| NTE_BAD_PROVIDER | NTE_BAD_PUBLIC_KEY |
NTE_BAD_PROV_TYPE
NTE_BAD_PROV_TYPE means that the numeric provider type supplied to the CryptoAPI call is invalid. A provider type identifies a legacy CSP class and must match the named provider and the operations the application intends to perform.
What to check
- Review the provider type constant passed to the acquisition call and avoid treating it as an arbitrary integer.
- Ensure that a named provider, when supplied, is registered for the same type.
- When updating code, prefer a consistent modern CNG design rather than mixing CNG keys with legacy CSP configuration.
Microsoft: CryptAcquireContext
Looking for a different code? Search another status or error code.