| Previous | Next |
| CRYPT_E_INVALID_INDEX | CRYPT_E_NOT_DECRYPTED |
CRYPT_E_ALREADY_DECRYPTED
The message content was already decrypted, but the caller attempted an operation that expects the encrypted state.
What to check for CRYPT_E_ALREADY_DECRYPTED
- Trace the message-handle lifecycle and ensure decryption is performed only once for that state.
- Do not pass a previously decrypted payload back into a decrypt operation as though it were an enveloped CMS message.
- Create a fresh message context when the application needs to process the original encrypted blob again.
Microsoft: CryptDecryptMessage
Diagnostic discriminator: Check the message state before invoking the operation. This result means the content is already decrypted while the requested path expects encrypted content.
Looking for a different code? Search another status or error code.