-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bizarre. It worked fine under Windows and Linux, so I did a complete
rebuild of crypto++ under Solaris and then it worked. Something must have
been wrong with the earlier crypto++ build, even though it passed the self-
tests.
Doc
PS On a less time-wasting note, I recommend using the freeware /dev/random
and /dev/urandom for Solaris obtainable at www.cosy.sbg.ac.at/~andi/, and
incorporating them into AutoSeededRandomPool if you are running under
Solaris. One of the timing self-tests will fail if you do this, but it
isn't important.
On 12 Nov 2002 at 8:47, D. R. Evans wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Reading the FAQ for how to perform EDE mode DES3 encryption in crypto++ 5.0,
> I created the following complete program:
>
> #include "cryptlib.h"
> #include "des.h"
> #include "filters.h"
> #include "modes.h"
>
> using namespace CryptoPP;
>
> int main(void)
> { unsigned char* kp2 = new unsigned char [24];
> unsigned char* iv2 = new unsigned char [8];
>
> CBC_Mode<DES_EDE3>::Encryption var(kp2, 24, iv2);
>
> return 1;
> }
>
> This crashes during the creation of the "var" variable.
>
> So obviously I'm misunderstanding the example in the FAQ. How should I be
> creating this object?
>
> Doc
>
> PS This is on Solaris 8, compiled with g++ 3.2, with no optimisation flags
> in the crypto++ build.
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2 -- QDPGP 2.60
> Comment: Key obtainable from servers: ID 0x362912B8
>
> iQA/AwUBPdEig2nXrLw2KRK4EQLi8wCeIq9HCx9TP/HrGtyhNqLY37XBEqYAn3BM
> BIrGbOZCCZRxn7koqxvtHHIY
> =uM4G
> -----END PGP SIGNATURE-----
>
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60
Comment: Key obtainable from servers: ID 0x362912B8
iQA/AwUBPdEyl2nXrLw2KRK4EQImzACfWzy4KtpMxZkJHx3hCxrKViV4Y0kAoNSN
CbFZg0gl1Ho3NYk3z3zvD4Wa
=iIuo
-----END PGP SIGNATURE-----