Unable to Decript text containing @# using CryptDecrypt api

  • Thread starter Thread starter Busetty Pavan Kumar
  • Start date Start date
B

Busetty Pavan Kumar

Guest
I am having decrypting problem with CryptDecrypt. I am able to decrypt successfully for all the characters except when we have @# . i am faced with an error "NTE_BAD_DATA".

encryptResult = CryptDecrypt( hDecEncKey, 0, TRUE, 0, pbBuffer, &dwCount );
if( encryptResult==FALSE )
{
dwErr = GetLastError();
MC_LOGIF(LEVEL_ERROR,L"Failed in CryptDecrypt(), Error:" << dwErr );
}

the above code works fine when we dont have @# character in it. when we have @# it is able to retrieve @ but not able to processes #.

Continue reading...
 
Back
Top