Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Add (existing) AESCCM ciphers to the supportedCiphers() list

    General and Desktop
    2
    3
    141
    Loading More Posts
    • 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.
    • M
      Marc_Van_Daele last edited by

      When I run the following code snippet

          qDebug() << QSslSocket::sslLibraryBuildVersionString();
          auto configuration = QSslConfiguration::defaultDtlsConfiguration();
          QList<QSslCipher> all_ciphers;
          all_ciphers = configuration.supportedCiphers();
          for(int i=0;i<all_ciphers.length();i++){
              if(all_ciphers[i].name().contains("CCM")) //TLS_PSK_WITH_AES_128_CCM_8  //PSK-AES128-CCM8
                      qDebug() << "Cipher " << all_ciphers[i].name();
          }
          qDebug() << "Ciphers: " << all_ciphers.length();
      
      

      I get

      "OpenSSL 1.1.1c  28 May 2019"
      Ciphers:  60
      

      This 60 is exactly the same as I get from openssl ciphers -psk -v | wc

      However, I want to use the TLS_PSK_WITH_AES_128_CCM_8 (OpenSSL PSK-AES128-CCM8) Cipher. This one is installed because it is shown by openssl ciphers -psk -v AESCCM but how can I get it in the supportedCiphers() list?

      Background: I want to connect using qtcoap to an existing coap server using TLS_PSK_WITH_AES_128_CCM_8

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What OS are you running your application on ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • M
          Marc_Van_Daele last edited by

          I'm running on Ubuntu 16.04. I've compiled Qt 5.13.0 myself against OpenSsl 1.1
          I'm not sure whether I should add some Qt API calls to add support for this AESCCM cipher family (which is mandatory for COAP afaik) or whether I should configure OpenSsl itself somehow.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post