Results 1 to 1 of 1

Thread: qca-gnupg chokes on big files.

  1. #1
    Join Date
    Dec 2010
    Posts
    44
    Thanks
    9
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default qca-gnupg chokes on big files.

    Hi,

    I am newbie to QCA and I am trying to build a small application using qca, qca-gnupg. I am kind of trying to decrypt a number of files. I have built a small application which does this.

    The application runs well and decrypts a few files but gets stuck on a file(filename:390) which is like 5MB in size. I am not able to figure out why none of the signals readyRead, byteWritten and finished of SecureMessage are being emitted.

    When I try to decrypt this file(390) using gpg.exe at the console the file is decrypted within a second.

    Also, I am able to catch the signals only if I use SecureMessage->waitForFinished(). If I don't call SecureMessage->waitForFinished then the signals are not emitted at all irrespective of the file size.

    I have attached my complete code, the dir.txt (to check file sizes) and the output.txt I get from my application which includes the diagnostic text from gpg.exe.

    Can anyone please take a look at my code and let me know where I am going wrong? Or can you please let me know where I can get support for QCA and QCA-GnuPG. Please let me know if anymore information is needed. Thank you.


    Sky.

    Ps:- Regarding the passphrase. I tried to work with the passphrase by using QCA:EventHandler as in the examples. But it was also behaving in a unpredictable manner so I tweaked the qca-gnupg code to pass the passphrase as an argument to gpg.exe (--passphrase "mypassphrase" )
    Attached Files Attached Files

Similar Threads

  1. qca, qca-gnupg Not able to open files
    By sky in forum Newbie
    Replies: 1
    Last Post: 15th February 2011, 07:11
  2. Linker chokes on virtual methods
    By kahahn in forum General Programming
    Replies: 2
    Last Post: 23rd June 2009, 21:58
  3. Replies: 12
    Last Post: 17th June 2009, 06:34
  4. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05
  5. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 01:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.