×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    45

    aes encryption problem

    i used aes encrypton algorithm to encrypt data ,it worked well but now not work!!!!!!!!!!!!!!!

    there is apanic when i put the encryption code,when i remove encryption code no panic, i serached
    in all code about what cause this panic and no thing found .the problem in this line of encryption code
    HBufC8* encryptData = HBufC8::NewLC(bufEncryptor->MaxFinalOutputLength(msh1.Size()));
    TBuf8<200>msh1;
    msh1.Copy(_L8("mmmmmmmmmmmmmmmmmmm"));
    _LIT8(KAESKey,"1234567890abcdef");
    CPaddingSSLv3* encryptPadding = CPaddingSSLv3::NewL(16);
    CAESEncryptor* aesEncryptor = CAESEncryptor::NewL(KAESKey);
    CBufferedEncryptor* bufEncryptor = CBufferedEncryptor::NewL(aesEncryptor, encryptPadding);
    HBufC8* encryptData = HBufC8::NewLC(bufEncryptor->MaxFinalOutputLength(msh1.Size()));
    TPtr8 encryptDataPtr = encryptData->Des();
    //Encrypting the text and writing into an output file
    bufEncryptor->ProcessFinalL(msh1,encryptDataPtr);
    comm2file.Copy(encryptDataPtr)
    what is th problem??????????????????????
    Last edited by sh3at; 2011-07-06 at 03:01. Reason: add line

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: aes encryption problem

    It is rather similar to http://www.developer.nokia.com/Commu...ption_of_files
    What is the panic code you get?

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    45

    Re: aes encryption problem

    the panic is E32USER-CBase 90 ,i searched about it and i solve previous problem but in this problem i can't find what cause this panic ,i find only that this line
    cause this problem
    HBufC8* encryptData = HBufC8::NewLC(bufEncryptor->MaxFinalOutputLength(msh1.Size()));

    is this panic from that line or some thing in the code ??

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: aes encryption problem

    Quote Originally Posted by SDK Help
    The panic is raised as a result of a call to the Pop() and PopAndDestroy() static member functions of the CleanupStack class. The panic occurs when an the item to be popped is not the expected item.
    Are you aware that HBufC8::NewLC pushes an item onto the Cleanup Stack?

  5. #5
    Registered User
    Join Date
    Mar 2011
    Posts
    45

    Re: aes encryption problem

    --->ok i will debug again and see the problem of cleanup stack is there is away to see all objects in the stack while debugging to know the specific object that make this panic

Similar Threads

  1. AES 256 encryption
    By bejoy_ak in forum Mobile Java General
    Replies: 1
    Last Post: 2010-07-20, 18:07
  2. encryption/decryption AES algorithm
    By rajeev123in in forum Symbian
    Replies: 4
    Last Post: 2010-05-19, 12:27
  3. AES encryption plugin 1.0
    By quickie in forum Symbian
    Replies: 17
    Last Post: 2009-12-08, 14:14
  4. AES encryption question
    By nadav70 in forum Symbian
    Replies: 8
    Last Post: 2009-06-12, 05:46
  5. AES encryption API's
    By PopAndDestroy in forum Symbian
    Replies: 9
    Last Post: 2008-11-04, 18:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×