Giter Site home page Giter Site logo

gerritjvv / cryptoplayground Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 29.05 MB

crypto security playground.

License: Apache License 2.0

Java 0.26% Shell 0.30% CMake 1.42% C 41.59% C++ 2.41% Makefile 14.56% HTML 29.79% CSS 0.21% Python 1.44% JavaScript 0.27% TeX 5.97% Perl 0.40% Batchfile 0.01% M4 0.07% Awk 0.03% Yacc 0.10% Assembly 0.12% Perl 6 0.02% RPC 0.02% Roff 1.00%

cryptoplayground's People

Contributors

gerritjvv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cryptoplayground's Issues

Wrong value taken as hotp parameters

In the HOTP [rfc 4226] tests, you took the truncationOffset value as 0 instead of some out of bound value like -1.
This causes dynamic truncation to fail and always result in offset set to 0,
as the if condition here always computes to true.

if ((0 <= truncationOffset) &&
    (truncationOffset < (hash.length - 4))) {
            offset = truncationOffset;
}

I found your errata in the rfc and noticed the wrong function call in the test file.
I just wanted to tell you that the [rfc 4226] test cases are correct.

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.