| Previous | Next |
| NTE_BAD_ALGID | NTE_BAD_TYPE |
NTE_BAD_FLAGS
NTE_BAD_FLAGS means that the flags passed to a cryptographic API are invalid, unsupported by the selected provider, or mutually incompatible. The flags may also be correct for a different API call but not for this operation.
What to inspect
- Log the full flag mask and decode it into named flags at the call site.
- Compare the flag combination with the documentation for the exact API and provider type.
- Remove speculative flags and add only those required by the intended key-container or verification workflow.
Microsoft: CryptAcquireContext
Looking for a different code? Search another status or error code.