Giter Site home page Giter Site logo

Comments (8)

maandree avatar maandree commented on July 16, 2024

Are you using the latest version of libkeccak, does rolling back to the previous version of libkeccak change anything? How big is the file, and how big is the I/O block size?

from sha3sum.

Bonnietwin avatar Bonnietwin commented on July 16, 2024

Arch Linux is a rolling distro so is very up to date usually.
sha3sum is 1.2.1
libkeccak is 1.3

I rolled back to 1.2.2 of libkeccak and the problem is no longer there. The sha3sum is correct for the file wherever it is located.

The sqlite tar file is 2.9MiB and the bacula tar file is 4.0MiB
I will also do a test with a much smaller file and see if there is a difference and find out what the I/O block sizes are for the files evaluated.
Rolling back to the previous version of libkeccak is a working solution for me until the issue is solved.

from sha3sum.

Bonnietwin avatar Bonnietwin commented on July 16, 2024

I am not sure if I have found what you were asking for with the I/O Block Size but after googling, I have run the stat command on the file.
On the same partition as I was working on that gave the correct sha3 hash the IO Block number was 4096
On the nfs mounted fileserver (running on a raid array) the number was 262144

from sha3sum.

Bonnietwin avatar Bonnietwin commented on July 16, 2024

I forgot to mention in the last post that the partition I was working on that gave the correct sha3 hash is also a raid array, so both locations are raid array based.

from sha3sum.

maandree avatar maandree commented on July 16, 2024

Great, then I'm rather sure where the problem is located. I'll get back to you when I've looked at it.

from sha3sum.

Bonnietwin avatar Bonnietwin commented on July 16, 2024

I installed the 1.3 version of libkeccak again and ran the test on different file sizes.

The same different sha3sum occurred with files of 1016.5KiB and 158.5KiB but with a file of 2.7KiB the sha3sum was the same for the file in both locations.

from sha3sum.

maandree avatar maandree commented on July 16, 2024

I'm certain it is fixed now, would you mind checking with the lasted commit to libkeccak?

from sha3sum.

Bonnietwin avatar Bonnietwin commented on July 16, 2024

Sorry for delay but I was a bit busy today.

Just patched the source and installed it using the Arch Linux Build System and tested it out on the sqlite package and now I get the same sha3-256sum as they have on the sqlite website.

Thanks very much. Marking this issue as closed. Look forward to it ending up in the Arch Linux system but the patched version works so no problems any more for me.

from sha3sum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.