Re: CryptMsgControl Error

From: Erhan Cetintas (cetintas_at_uekae.tubitak.gov.tr)
Date: 07/08/04


Date: 8 Jul 2004 05:53:26 -0700


- We use the same operating system and machine. (Windows 2000)
- Since we can still encrypt and decrypt new files, the key container
is undamaged.
- Certificate is available on the store. Before this function
CryptAcquireCertificatePrivateKey is successful.

Thanks,
Erhan Cetintas
TUBITAK-UEAKE

"Monica Ene-Pietrosanu[MSFT]" <monicae@online.microsoft.com> wrote in message news:<#xmkwI4YEHA.1264@TK2MSFTNGP11.phx.gbl>...
> There are multiple reasons why this may fail, you need to provide more
> details as of what changed in your environment.
> Here are some hints:
> - operating system that you do decryption on is different (note that XP has
> different default key sizes and default CSP than NT)
> - key container may have become corrupted. You can check it by writing a
> simple app that does a CryptAcquireCOntext on the container that you are
> using.
> - certificate may no longer be available in the store
> and so on.
> --
> Monica Ene-Pietrosanu [MS]
> Windows Security
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Erhan Cetintas" <cetintas@uekae.tubitak.gov.tr> wrote in message
> news:24444196.0407060424.2bcbea9b@posting.google.com...
> > Hello,
> > we encrypt files with pkcs7 encoding using streaming method. Until now
> > there was no problem during decrypt process. Hovewer, we have some
> > encrypted files which cannot be decrypted. During decrypt process
> > CryptMsgControl function gives NTE_FAIL (0x80090020) error code. Why
> > does this function gives this error code? Any idea?
> >
> > Thank in advance,
> > Erhan Cetintas
> > TUBITAK-UEKAE



Relevant Pages

  • Re: CAPI and RC4: can not decrypt when Final parameter is set to F
    ... to store ASYMMETRIC key pairs - never symmetric keys like RC4, ... Now when you need to encrypt at one place and decrypt at the other normally ... Get a HCRYPTPROV handle to a key container with CryptAcquireContext ...
    (microsoft.public.platformsdk.security)
  • Re: Cant decrypt w/admin acct
    ... >>First off you need to rule out a permissions problem. ... >>Run mmc and select the certificate snapin for user and go ... >>used to decrypt the files. ... The certificate is a "key pair" in that the certificate is used to encrypt the files ...
    (microsoft.public.win2000.security)
  • RE: Plz help me
    ... When you want to encrypt a message you have to encrypt using the ... your public key (from YOUR certificate) to verify your signature. ... but when i m trying to decrypt and verify that Message using receiver's ...
    (microsoft.public.platformsdk.security)
  • Re: Decrypt RSA using D
    ... We are planning on using RSA with WSE, so it only uses RSA to encrypt the symmetric key used for the SOAP body--the same scenario you outlined below. ... owner of the private key can decrypt it. ... always embedded inside the CSP key container and never passed out into the ...
    (microsoft.public.dotnet.framework)
  • Re: Encryption Problem
    ... the private key associated to that public key to decrypt that message. ... private key associated to the public key you are using to encrypt on the ... > certificate present in the certificate store. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)