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. qChecksum()
Forum Updated to NodeBB v4.3 + New Features

qChecksum()

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 842 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.
  • W Offline
    W Offline
    Warren_Mason
    wrote on last edited by
    #1

    Can anybody point me to an open source algorithm that is compatible with qChecksum()?

    I found this page: https://srecord.sourceforge.net/crc16-ccitt.html, but can not get the results from it to agree with qChecksum().

    Chris KawaC 1 Reply Last reply
    0
    • W Warren_Mason

      Can anybody point me to an open source algorithm that is compatible with qChecksum()?

      I found this page: https://srecord.sourceforge.net/crc16-ccitt.html, but can not get the results from it to agree with qChecksum().

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Warren_Mason Hi, welcome to the forum.

      Well Qt is open source, so how about just the code of qChecksum itself? Source Code.

      The function implements two open standards, as pointed to by the checksum type argument: ISO 3309 and ITU-V.41, so if you don't want to use the code from Qt itself for some reason you might want to look for documentation/implementation of any of those standards.

      W 1 Reply Last reply
      4
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by Kent-Dorfman
        #3

        "compatible with" means you should use the same algorithm so it calculates the same. FWIW, checksums are primitive compared to CRC algorithms, but there is a tradeoff in computational complexity.

        checksums generally accumulate input and XOR against the previous value, while CRC compare against the coefficients of a polynomial, so they have greater capacity to detect errors.

        I light my way forward with the fires of all the bridges I've burned behind me.

        1 Reply Last reply
        0
        • Chris KawaC Chris Kawa

          @Warren_Mason Hi, welcome to the forum.

          Well Qt is open source, so how about just the code of qChecksum itself? Source Code.

          The function implements two open standards, as pointed to by the checksum type argument: ISO 3309 and ITU-V.41, so if you don't want to use the code from Qt itself for some reason you might want to look for documentation/implementation of any of those standards.

          W Offline
          W Offline
          Warren_Mason
          wrote on last edited by
          #4

          @Chris-Kawa Thanks for the pointer to the code. I'm new to Qt and still finding my way around.

          1 Reply Last reply
          0
          • W Warren_Mason has marked this topic as solved on

          • Login

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