> I want to generate a large random bitstream witch > is deterministic (given a certain seed). > If for example, if I have 2 diffrent programs running, > both possessing the same session key. > I seed the generator in both applications with this session key. > Both applications should receive the same random bitstream.
> Or am I using the wrong methods/functions ? > Your tips and help are appreciated! I think you are using the wrong methods. You can replace OpenSSL's RNG with your own very easily (RAND_set_rand_method to call your own six functions). One way to generate a reproducable stream of cryptographically-strong random numbers is to use a 128-bit key and a 128-bit starting value (both random is recommended). Just keep using AES_ofb128_encrypt to encrypt as many zero bytes as needed. (This is functionally equivalent to simply encrypting the starting value and then encrypting the output over and over.) DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
