Hi Avi, > I plan to #define some macro that will be used to compile just > AES_CTR_Encrypt and embed the public key for build_db.exe and will > compile just AES_CTR_Decrypt and embed just the private key in > client.exe. AES is a symmetric cipher. There is no notion of public keys and private keys in the algorithm. If you want to protect you symmetric key (generated offline - not exchanged - and hard coded into the executables, you might also look at RFC 3394: Advanced Encryption Standard (AES) Key Wrap Algorithm.
> (*) I reinstalled crypto552 and built it properly via the .dsw file, > reinstalled dobrexor, linked to cryptopp and rebuilt and I still get > the same crash. Does Crypto++ pass its validation test? I believe the command is "cryptest v". > P:\CryptoPP\dobrexor\dobclass.cpp(102) : fatal error C1001: INTERNAL > COMPILER ERROR Haven't seen this show its head in quite some time. Last time was with VC6.0. If you are using 6.0, have you applied Microsoft's processor patch? > CryptoPP::FileSink* fs = new CryptoPP::FileSink(pubFilename); > CryptoPP::StringSource(pubString, true, fs); > CryptoPP::StringSource(priString, true, new CryptoPP::FileSink > (privFilename)); When you pass variable fs to StringSource, StringSource owns it an will delete it (the behavior is noted in ReadMe.txt if I recall correctly). Are you performing a double delete to cause the crash? Jeff On 2/1/09, Avi <[email protected]> wrote: > > Hi, > > > Are you also embedding the public key as well? > It is required to load both keys in dobrexor because it handles both > encryption and decryption, but I use two different executables: > client.exe and another one for building the database (let's say > build_db.exe). > > I plan to #define some macro that will be used to compile just > AES_CTR_Encrypt and embed the public key for build_db.exe and will > compile just AES_CTR_Decrypt and embed just the private key in > client.exe. > > (*) I reinstalled crypto552 and built it properly via the .dsw file, > reinstalled dobrexor, linked to cryptopp and rebuilt and I still get > the same crash. > > One thing I neglected to mention is that I got a dreadful compiler > error, namely: > -- > Compiling... > dobclass.cpp > P:\CryptoPP\dobrexor\dobclass.cpp(102) : fatal error C1001: INTERNAL > COMPILER ERROR > (compiler file 'msc1.cpp', line 1794) > Please choose the Technical Support command on the Visual C+ > + > Help menu, or open the Technical Support help file for more > information > Error executing cl.exe. > -- > > I guess it's a VC6 thing. This was my workaround: > -- > CryptoPP::FileSink* fs = new CryptoPP::FileSink(pubFilename); > CryptoPP::StringSource(pubString, true, fs); > CryptoPP::StringSource(priString, true, new CryptoPP::FileSink > (privFilename)); > -- > > Later I found out that this is the recommended solution. > I'll install VS2008 tomorrow (it's really late night right now) and > see if I get a better result. > > > Sounds like a fun little project and very useful too. > I didn't even plan on distributing it - it was just a nice way to > challenge myself in various fields of programming. > Today it's my baby :) > > Good night. > > Avi. --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
