diff options
author | lloyd <[email protected]> | 2008-05-24 17:05:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 17:05:16 +0000 |
commit | b8768fa4372eaeb0b816db7bc55813261bc35c2a (patch) | |
tree | db3738a2aef71c5aaae37619889d0baf6cef13b9 /src/rsa.cpp | |
parent | 265ffd5c1aaa29c19a4feae5c54133ef7cf1d52d (diff) |
Remove both default arguments to the constructor of ANSI_X931_RNG.
If the second argument was NULL, it would default to a new Randpool.
But this introduces an annoying dependency: really it is the caller who
is relying on Randpool. Make this explicit by passing a new Randpool
pointer to the constructor in Library_State.
This will break all callers using ANSI_X931_RNG's constructors with
default arguments. To regain the previous behavior, change:
ANSI_X931_RNG rng;
ANSI_X931_RNG rng("/*cipher name*/");
to
ANSI_X931_RNG rng(/*cipher name, default was AES-256 */, new Randpool);
You are free to pass another PRNG object if you like.
This make require inclusion of <botan/randpool.h>
Diffstat (limited to 'src/rsa.cpp')
0 files changed, 0 insertions, 0 deletions