Problem in decryption of file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



hello,
I have been using certificates for encryption and decryption using c# dot
net2.0.I have implemented in windows application .It works fine.The same
code used for implementaion in compactframework for Mobile 5.0,the
encryption parts alone work fine but decryption fails with error code
"Unknown Error '80007001".

I also verified encrypted data by decrypting it by windows application.It
decrypt to orginal data.

CspParameters cp = new CspParameters();
cp.KeyContainerName = container;
cp.ProviderType = this.providerType;
cp.ProviderName = this.providerName;
cp.KeyNumber = keyspec;
RSACryptoServiceProvider oRSA = new RSACryptoServiceProvider(cp);
clearkey = oRSA.Decrypt(encdata, false); !!Here i get the exception

Pls say me way how cany sort out the problem and find solution
.



Relevant Pages

  • Re: Auto-update protocol
    ... to transfer even with a single client and no interference. ... shared secret/public key is the only way to do the encryption. ... successfully decryption is the authentication. ... you can get using a generic farm server, but TFTP does not have any ...
    (comp.arch.embedded)
  • Re: Securing data to a process principal
    ... encryption key first time for the user - and use it later). ... secret. ... I need the decryption to ... You MAY think that instead of a filter driver you can simply ...
    (microsoft.public.platformsdk.security)
  • Re: embedded keys - there has to be a less vulnerable approach
    ... the database would be run on top of an encrypting file system ... > The use of an asymmetrical encryption algorithm does not seem to offer ... because the encryption and decryption ... > a hostile attacker is not a member of that small knowledgeable elite. ...
    (comp.security.misc)
  • embedded keys - there has to be a less vulnerable approach
    ... the database would be run on top of an encrypting file system ... The use of an asymmetrical encryption algorithm does not seem to offer ... because the encryption and decryption ... You have a table with customer names and addresses. ...
    (comp.security.misc)
  • NTE_BAD_DATA
    ... decryption module using the self signed certificate. ... My encryption and decryption module are as follows. ... goto Exit_MyDecryptFile; ... // imported from a BLOB read in from the source file or having ...
    (microsoft.public.platformsdk.security)