ctr_prng_get_octet_string (internal implementation of crypto_get_random) uses the AES CTR keystream generator incorrectly. The keystream generator, being made for SRTP packets, is limited to generating 2^16 blocks of 2^128 random bits, i.e 1 MB, while ctr_prng_get_octet_string only reinitializes the PRNG after 4 GB of random data. Either this is a misuse of the keystream generator (my guess), or the crypto_get_random function has a misleading name
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
crypto_get_random also will fail to generate more than 1 MB of random data in one go