| Previous | Next |
| CRYPT_E_OID_FORMAT | CRYPT_E_UNEXPECTED_ENCODING |
CRYPT_E_INVALID_MSG_TYPE
The operation was requested for a CMS message type that does not support it. Signed, enveloped, and other message forms expose different parameters and controls.
What to check for CRYPT_E_INVALID_MSG_TYPE
- Determine the actual message type before calling a type-specific CryptoAPI operation.
- Verify that code handling a signed message is not attempting a decryption-only operation, and vice versa.
- Read message parameters only after the message has been decoded far enough for that information to be available.
Microsoft: CryptMsgOpenToDecode
Verification: Preserve the cryptographic input, provider, key or certificate state that produces invalid msg type, then compare the same operation after correcting only that state.
Looking for a different code? Search another status or error code.
