Did you run the C or the Java ? I can compile and run the C code myself
too, and if i take out the C code and just put in a printf method it
works but it WON'T encrypt for me :(
Did you run the Java interface ? or just the C ?
On Sun, 2005-04-24 at 00:41 +0900, Takaaki Ishii wrote:
> >Ok well thats not the problem so, its definately in /usr/lib/. I am
> >having this problem not only on OpenSSL crypto libraries but a very
> >similiar problem at work with some c crypto libraries we are using. Its
> >more likely my jni interface thats misbehaving then. (although i did
> >check it several times b4 asking this q here).
>
> I think yours is not a code problem in this case,
> because I could run your code without UnsatisfiedLinkError.
>
> # Still I have any wired understanding?
> -----
> host:~/user/jni$ tail jni.c
> enc[len] = '\0';
> dec = malloc(len+1);
> dec[len] = '\0';
>
> encrypt(txtToEncrypt, enc, len, key1); //Encrypt txtToEncryptt usingenc
> with
> key1
> decrypt(enc, dec, len, key2); //Decrypt enc(txtToEncrypt) using key2
>
> printf("done!\n");
> }
>
> host:~/user/jni$ make
> gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include
> -I/usr/j2sdk1.4.2_
> 08/include/linux jni.c -o jni.o
> gcc -shared -Wl,-soname,libnativebf.so -o libnativebf.so jni.o -g -L/usr/lib -
> lcrypto
> host:~/user/jni$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`; export
> LD_LIBRARY_PATH
> host:~/user/jni$ java nativeBF
> done!
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [email protected]
> Automated List Manager [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]