randombytes icon indicating copy to clipboard operation
randombytes copied to clipboard

A portable C library for generating cypto-secure random bytes

Results 9 randombytes issues
Sort by recently updated
recently updated
newest added

https://github.com/dsprenkels/randombytes/blob/1c0c6665640535a9a851bf5c2df2e0369273b6ad/randombytes.c#L302 The code under randombytes_js_randombytes_nodejs doesn't seem to work for Electron apps webassembly. Since many implementations don't check for return value of randombytes, downstream code was silently passing and causing...

For Windows Vista and newer versions available bcrypt.h and BCryptGenRandom - which recommend in newer os. Could add it ? And add more macro for detection Windows, for ex., boost...

enhancement
help wanted

Android Os older than Android 9.0 (API_LEVEL = 28) broken syscall(SYS_getrandom). Please, avoid it when building with NDK. Add something like ``` .... #elif defined(__linux__) || defined(__GNU__) || defined(GNU_KFREEBSD) //----------...

I want to use this code on a microcontroller, we know that a microcontroller does not have an operating system, so how to generate excellent random bytes, is there a...

question

In #43, @raidenluikang requests that more macro guarding should be added on windows. > And add more macro for detection Windows, for ex., boost predef uses these macros: > >...

question

Old linux versions do not have the `getrandom` system call. On these versions, `randombytes.c` falls back to using `/dev/{u,}random` for randomness. We should see whether GitHub actions has support for...

enhancement
help wanted

We are currently only testing the **build** for windows. We are not testing the functionality of `randombytes.c` on windows. We should add this to the CI pipeline. (See also #40)

enhancement
help wanted

Still to do: - [x] Create functional tests (call `randombytes` twice, check if output differs) - [x] Write a mocking test suite (using ~cmocka~ a home-brewed mocking framework) Platforms: -...

enhancement
question

Cc @john-sharratt

enhancement