On Dec 4, 11:20 pm, Michael <[email protected]> wrote:
> The examples online have:
> StringSource(plain, true,
>     new PK_EncryptorFilter(rng, e,
>         new StringSink(cipher)
>    ) // PK_EncryptorFilter
> ); // StringSource
>
> Does encryption and decryption have to use the same rng variable?
No.

> Why does EncryptorFilter need a AutoSeededRandomPool?
Its a generic interface. It allows swapping components in and out with
relative ease. As with many non-trivial programs with lots of
interfaces, many parameters go unused as behavior is tuned during
derivation.

Places that you would need the PRNG include a SignerFilter, where DSA
uses a per-message random k. In the case which you *really* don't need
a random source, use a NullRng() from cryptlib.h. See
http://www.cryptopp.com/docs/ref/cryptlib_8h.html.

Jeff

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to