Comments (3)
ChaCha is probably a good replacement, but I'm planning to add AESCtr
back. it was just thrown under the bus for lack of time. For the urandom
generator, yes it's a good idea to add back too.
from cryptonite.
After filing the issue I came to understand that the MonadRandom IO
instance uses a mix of all entropy sources including urandom. I would be very pleased to have a rng where you can specify what EntropyBackend
to use though.
What do you think about the following monad transformer
data SystemRNG e m a = SystemRNG m a
instance EntropySource e => MonadRandom (SystemRNG e)
with a suitable
runSystemRNG :: EntropySource e => proxy e -> SystemRNG e m a -> m a
(or maybe lacking the proxy
argument).
from cryptonite.
Some of this is probably a good idea, but I don't think distinguishing the SystemRNG
at the type level and exposing the EntropySource
is useful. It would make more sense to expose a simple ADT that can combine the EntropySource
the way it want, e.g.:
data EntropyType = Cpu | System ...
getEntropyFrom :: EntropyType -> ...
from cryptonite.
Related Issues (20)
- aarch64 - How to remove/override dependency on Scrypt - ubuntu aarch64 on pi4 provides its own include file and library and executable HOT 2
- On AVX2 systems testsuite fails on unaligned stores in cbits/decaf/include/constant_time.h:159 HOT 4
- Unable to build on FreeBSD aarch64: cbits/decaf/p448/f_generic.c:56:8: error: loop not unrolled HOT 2
- Fails to build with GHC 9.2.1 HOT 5
- Fails to compile on CentOS with stack lts-18.16 HOT 1
- test-cryptonite fails to link HOT 6
- master fails to build on macOS HOT 4
- Argon2 KATs test failure on aarch64-darwin (apple silicon) HOT 1
- 4-8x sha256 performance deficit compared to sha256sum/openssl (SHA instructions) HOT 2
- Feature: add support for NIST PQC finalists HOT 1
- Test suite segfaults on armv7l-linux
- Is this package the right location for the xxhash non-cryyptographic hash function HOT 2
- Sign function taking way too much time HOT 2
- error: instruction requires: sha3 HOT 4
- Return V Value From ECDSA Signing
- Verify argon2
- Write permission HOT 4
- Expose the bytes underlying an AES128/AES192/AES256 HOT 1
- Unable to build on MacOS 13.4.1 (aarch64) HOT 1
- constant time comparison for `Digest`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptonite.