Giter VIP home page Giter VIP logo

sha-3's People

Contributors

dustman31 avatar harshmittal2210 avatar i-am-cjc avatar mcshaz avatar oyheskes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sha-3's Issues

sha3Digest

Its complete junk.
1)state->length isnt a uint64_t count.
2)A is a 25 uint64
3)'for' really terrible

Error when try execute program in Visual studio 2017

'Keccak.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\kernel32.dll'
The thread 0x1184 has exited with code 0 (0x0).
The program '[8172] Keccak.exe' has exited with code 0 (0x0).

What version you use VS ?
Or how I can solve this problem ?

keccakUpdate can be called with incorrect amount of data parameter..

Bjorn Nilsson pointed out the following:

In the doFile function, the keccakUpdate call looks different for the three hash types:

For hashType 0: keccakUpdate((uint8_t*)buf, 0, bytesRead, st);
For hashType 1: keccakUpdate((uint8_t*)buf, 0, bufferSize, st);
For hashType 2: keccakUpdate((uint8_t*)buf, 0, bufferSize, st);

Is the difference bytesRead vs bufferSize intentional? It seems to me the code might feed uninitialized buffer for hashType 1 and 2 if bytesRead<bufferSize.

This is correct - it should have been bytesRead. This was likely missed when I converted the project from reading the whole file at once. I have pushed the fix, and encourage users to update to this version.

Different result between Debug and Release

My Code:

qq20170621-224605 2x

Input ”A“

Debug(Correct):
421a35a60054e5f383b6137e43d44e998f496748cc77258240ccfaa8730b51f40cf47c1bc09c728a8cd4f096731298d51463f15af89543fed478053346260c38

Release:
fff33bdfffbfdbffb5712b45afaa596feaf59e440bf66b0f18948e4cc9ebc144e7c9f0a0aa3c8fc7375e2a4fc8add620f28210b2cb87f1d040448b62fbe7392a

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.