You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nist_rng code should work with any reasonable ANSI C compiler. Is there some specific compilation problem you are having? Which platform/architecture are you targeting?
The bits one would typically use are nist_ctr_drbg.c, nist_ctr_drbg.h, nist_ctr_drbg_aes256.h (or nist_ctr_drbg_aes128.h), and nist_config.h. Apart from AES/Rijndael, the rest of the files provide debug/diagnostic support. While a generic, C-based Rijndael implementation is included, one is likely to have a superior platform-specific solution. Even if ISA extensions like Intel's AES-NI or the ARMv8 cryptographic extension are not available, a platform-optimized solution is likely to be both faster and involve less code duplication (which could get particularly expensive if one needs FIPS validation or the like). More critically, some supply of entropy is absolutely essential to the proper operation of a cryptographic RNG/RBG and that is well beyond the scope of this particularly project.
That leaves only one core *.c file, which seemed a bit on the small for a stand-alone library that would then need some kind of dynamic configuration mechanism to choose the block cipher implementation at runtime instead of at compile time.
A more complete example to consider might be csrng. I have not reviewed that code, so I make no claim beyond that the scope of the project, as described on its main project page, encompasses a more complete example of a cryptographic random number generator (including entropy input, output validation, and such). Note that it uses a modified version of nist_ctr_drgb.c.
linux support plz? =D i love my chaos
The text was updated successfully, but these errors were encountered: