Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Add (existing) AESCCM ciphers to the supportedCiphers() list
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 273 Views 2 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.
  • M Offline
    M Offline
    Marc_Van_Daele
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        Marc_Van_Daele
        wrote on last edited by
        #3

        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
        0

        • Login

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