Hmm, so the app linked fine (against the cryptopp library)? You could
try and look at the symbols (using 'nm' and grep) to see if the cryptopp
functions do appear (it being c++ they're probably a little mangled).

Compile it with debugging info and run it from gdb. Then do a stack
trace (bt) and post the output. This may not help much but it's a start.

What version of gcc and ld are you using? Oh BTW the obvious thing is of
course to add exception handling in your program so you can catch the
exception and at least print out what it says rather than just letting
it abort.

Jim

On Tue, 2004-07-13 at 16:43, MrWebLover wrote:
> Thank you Jim,
> 
> for your help !
> It's right, my testprogram doesn't do much. The rest i have cutted, 
> because the error
> occurs in this snippet.
> I have tested your example, and i have the same error. The program 
> abort's at the line :
> 
> RSAES_OAEP_SHA_Decryptor priv(randPool, 1024);
> 
> At windows all works fine ...
> The compile of the library on linux work's too.
> I can not resolv the error. I hope someone can help me.
> 
> Is there a trick to compile ? I have compiled with the GNUMakefile (gmake).
> 
> Thanks for your answer's.
> 
> Best regards
> Torsten
> .
> 
> 
> James Vanns schrieb:
> 
> >Well the following (albeit slightly amended - note the headers) compiles
> >and runs OK on my Fedora Core 2 box. Of course, your code doesn't do
> >much! Also, note I changed the 4096 down to a realistic 1024.
> >
> >#include <sha.h>
> >#include <rsa.h>
> >#include <osrng.h>
> >
> >#include <stdio.h>
> >
> >using namespace std;
> >using namespace CryptoPP;
> >
> >int main (int argc, char *argv[]) {
> >   RandomPool randPool;
> >
> >   printf ("1\n");
> >   randPool.Put ((byte *)"->My-Security-Seed<-", 20);
> >
> >   printf("2\n");
> >   RSAES_OAEP_SHA_Decryptor priv(randPool, 1024);
> >
> >   printf("3\n");
> >   RSAES_OAEP_SHA_Encryptor shorterPriv(priv);
> >   printf("End\n");
> >}
> >
> >Jim
> >
> >On Tue, 2004-07-13 at 13:17, MrWebLover wrote:
> >  
> >
> >>Hi @ all again,
> >>
> >>i have tested my testprogram on an other Linux machine with gcc 3.2
> >>The same problem occurs.
> >>
> >>Please help me fast ! I need a solution to work with the cryptopp 
> >>library on linux.
> >>
> >>Here is my full  testprogram :
> >>
> >>#include "cryptlib.h"
> >>#include "randpool.h"
> >>#include "sha.h"
> >>#include "rsa.h"
> >>#include "hex.h"
> >>#include "files.h"
> >>#include "pubkey.h"
> >>#include "validate.h"
> >>#include "randpool.h"
> >>#include "pkcspad.h"
> >>#include "oaep.h"
> >>#include "integer.h"
> >>#include "asn.h"
> >>
> >>#include <stdio.h>
> >>
> >>using namespace std;
> >>using namespace CryptoPP;
> >>int main()
> >>{
> >>        /* Nun erstellen der Key's */
> >>        RandomPool randPool;
> >>        printf("1\n");
> >>        randPool.Put((byte *)"->My-Security-Seed<-", 20);
> >>
> >>        printf("2\n");
> >>        RSAES_OAEP_SHA_Decryptor priv(randPool, 4096);
> >>
> >>        printf("3\n");
> >>    RSAES_OAEP_SHA_Encryptor shorterPriv(priv);
> >>        printf("Ende\n");
> >>
> >>}
> >>
> >>
> >>    
> >>
> >>>Hi @ all,
> >>>
> >>>at the first, sorry for my bad english.
> >>>I have wrote some functions in windows (Visual Studio 6) to handle
> >>>my parts with the library. All worked fine.
> >>>
> >>>Now i compiled the cryptopp library on linux (gcc 3.3.1).
> >>>The compile was successful.
> >>>
> >>>Now i test a little Program like this :
> >>>
> >>>       RandomPool randPool;
> >>>       randPool.Put((byte *)"->My-Security-Seed<-", 20);
> >>>
> >>>       RSAES_OAEP_SHA_Decryptor priv(randPool, 1024);
> >>>
> >>>The Program 'abort' at the last line 'RSAES_OAEP_SHA_Decryptor 
> >>>priv(randPool, 1024)'
> >>>
> >>>Can someone give me a tip, what the problem ?
> >>>
> >>>Very thanks for help !
> >>>
> >>>Best regards,
> >>>Torsten
> >>>Alias MrWebLover
> >>>
> >>>
> >>>
> >>>
> >>>      
> >>>
-- 
James Vanns BSc (Hons) MCP
Senior Software Engineer (Linux / C & C++)
Canterbury Christ Church University College
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370


Reply via email to