-----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-----

Reply via email to