Thanks, I'll get that fixed.

On Mon, Mar 29, 2004 at 07:16:47AM +0200, Malte Starostik wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> the following will not compile due to osrng.h not including fips140.h
> which results in SelfTestFailure being undeclared in
> AutoSeededX917RNG::GenerateByte():
> 
> #include <crypto++/des.h>
> #include <crypto++/osrng.h>
> 
> int main()
> {
> ~    CryptoPP::AutoSeededX917RNG< CryptoPP::DES_EDE3 > rng;
> ~    unsigned char dummy[ 42 ];
> ~    rng.GenerateBlock( dummy, sizeof( dummy ) );
> }
> 
> Workaround: include fips140.h in the user code.
> IMHO osrng.h should be self-contained and not require additional includes.
> 
> Cheers,
> Malte
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFAZ7E8VDF3RdLzx4cRAuN4AJ41q+h2Lha66BMDKppIXTnCjslfngCfZlpa
> XvcmwJI135tg9xapjJVUofI=
> =YpkK
> -----END PGP SIGNATURE-----

Reply via email to