Hello,
I implemented the chatting applications using ECIES encryption at
BlackBerry phone and PC.
I used the BlackBerry Java API at BlackBerry.
When I used my application at BlackBerry 4.6 and PC, it worked well.
But when I used it at BlackBerry 5.0, the decryption of cipher text
received from BlackBerry is failed.
When I tested with BlackBerry 5.0, BlackBerry 5.0 decrypted the
messages from BlackBerry 4.6 and PC correctly.
As well as, BlackBerry 4.6 decrypted the messages from BlackBerry 5.0
and PC too.
But PC could decrypt the message from BlackBerry 4.6, can't from
BlackBerry 5.0.

So, I thought this problem is related to Crypto++ of PC.
The following is my code used in PC.

bool CryptAlgo::decodeTextMessage(byte* cipherText, int cipherTextLen,
std::wstring& plainText)
{
  CryptoPP::AutoSeededRandomPool rng;
  CryptoPP::ECIES< CryptoPP::ECP >::Decryptor Decryptor( m_textPriv );
 
Decryptor.AccessKey().AccessGroupParameters().SetPointCompression(true);

  byte* plainBuf =
malloc(Decryptor.MaxPlaintextLength(cipherTextLen));
  if(plainBuf == NULL)
    return false;

  Decryptor.Decrypt( rng, cipherText, cipherTextLen, plainBuf);
  plainText = (const wchar_t*)plainBuf;
  return true;
}


What did I mistake?
Please help me.

Regards,
Ricos.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Subscription settings: 
http://groups.google.com/group/cryptopp-users/subscribe?hl=en

Reply via email to