Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [QCA]Encrypt with private key and decrypt with public key !
Forum Updated to NodeBB v4.3 + New Features

[QCA]Encrypt with private key and decrypt with public key !

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 5.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    requinham
    wrote on last edited by
    #1

    Hi,

    When i use QCA, I can't decrypt with public key and encrypt with private.
    In documentation, private key is for decrypting and public key is for encrypting but the asymetric system don't like this.

    If we want garantee non-repudiation we also need to encrypt with private key and decrypt with public !

    Can someone tell me how solve this problem or ask me if it's a limitation of QCA ?

    Regards,
    Mohamed

    Regards,
    Mohamed Hamzaoui

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hostel
      wrote on last edited by
      #2

      Paste some code and write what is wrong.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        requinham
        wrote on last edited by
        #3

        the problem don't concern part of code, it concern the conception of API of QCA. Normally with RSA and other asymetric algorithms it's possible to encrypt with private key and decrypt with public key.

        In QCA this is not supported !

        Regards,
        Mohamed

        Regards,
        Mohamed Hamzaoui

        1 Reply Last reply
        0
        • N Offline
          N Offline
          noname120
          wrote on last edited by
          #4

          Of course you can, here is a proof:
          http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqca2/classQCA_1_1PKey.html#62d01121d3790d4d80cd4e3d60fa0ee6

          1 Reply Last reply
          0
          • R Offline
            R Offline
            requinham
            wrote on last edited by
            #5

            Hi,
            I don't think it's a proof because in publickey class there is just method to encrypt but without decrypting and in privatkey class method to decrypt without encypting !
            May be I don't understand you ?

            Regards,
            Mohamed

            Regards,
            Mohamed Hamzaoui

            1 Reply Last reply
            0
            • N Offline
              N Offline
              noname120
              wrote on last edited by
              #6

              You should take a look at this example:
              http://delta.affinix.com/docs/qca/rsatest_8cpp-example.html#_a8

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved