Giter Site home page Giter Site logo

tfpf / hash-drbg Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 227 KB

Cryptographically secure pseudorandom number generator for C, C++ and Python with global-state (thread-unsafe) and thread-safe variants, implementing NIST SP 800-90A. Provided as an installable package.

License: GNU General Public License v3.0

Makefile 0.82% C 83.11% Shell 2.42% C++ 8.86% Python 2.06% CMake 2.73%
cryptographically-secure cryptographically-secure-random csprng drbg global-state hash-drbg nist800-90a sha256 thread-safe

hash-drbg's People

Contributors

tfpf avatar

Watchers

 avatar

hash-drbg's Issues

If OpenSSL is installed, it should possible to use its SHA-256 implementation.

I observed that using the SHA-256 implementation of OpenSSL speeds up hdrbg_init and hdrbg_fill on Debian (WSL), Mint and Manjaro. On MSYS2, however, it slows them down!

Regardless, there should be an installation flag which allows users to choose which SHA-256 implementation they want to use. If they go for the OpenSSL implementation but it isn't available, it should fall back to my implementation.

(I have actually already made the required changes, but have moved them to another branch because pkg-config on MSYS2 does not correctly indicate whether OpenSSL is installed: pkg-config --libs openssl outputs -lssl -lcrypto even when openssl-devel is not installed, so linking the shared library fails. I should figure out a way to do this using CMake.)

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.