Re: [PATCH] openssl/crypto/bn/asm bn-586.pl bn_mul_add_words

2001-08-29 Thread Andy Polyakov
> This patch is a faster bn_mul_add_words for x86 assembly. What's your platform? I can't get it working on Linux, it dumps the core at the indirect jump... Had anybody have better luck? If you run on Windows and it works it must be a bug in perlasm module generating code for Unix... And as for

Re: OpenSSL and Solaris 8 / 64 bits

2001-08-29 Thread Andy Polyakov
> has OpenSSL been tested on Solaris 8 64 bit ? Yes. 64-bit builds with Sun's cc are supported since long time ago. As for GCC it should first be explicitely pointed out that -m64 options is *not* officially supported by GCC 3.0. However! Initial support for 64-bit builds with GCC is present in

RE: reading in PKCS8 DSA priv key to java

2001-08-29 Thread Steven Reddie
Something like this should do the trick: byte[] encodedKey; // read from file PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(encodedKey); KeyFactory keyFactory = KeyFactory.getInstance("DSA"); DSAPrivateKey privKey = (DSAPrivateKey)keyFactory.generatePr

reading in PKCS8 DSA priv key to java

2001-08-29 Thread Mark W. Webb
I know this may be off topic, but I wrote some code to create a DSA key pair, and matching certificate. The private key is stored in a file with PKCS8 encoding. I want to be able to read the private key file into my java program. The certificate is used by a C based program. Can someone gi

Re: strsep

2001-08-29 Thread Ben Laurie
Brian Havard wrote: > > On Wed, 29 Aug 2001 15:19:24 +0200 (MET DST), Peter Sylvester wrote: > > >would it be possible to add something like the following > >to evp/evp_test.c It is not a replacement for strsep but > >a function that seems to work with the few calls in evp_test.c > > > > > >sta

Re: strsep

2001-08-29 Thread Brian Havard
On Wed, 29 Aug 2001 15:19:24 +0200 (MET DST), Peter Sylvester wrote: >would it be possible to add something like the following >to evp/evp_test.c It is not a replacement for strsep but >a function that seems to work with the few calls in evp_test.c > > >static char * strsep(char **p,const char *

strsep

2001-08-29 Thread Peter Sylvester
would it be possible to add something like the following to evp/evp_test.c It is not a replacement for strsep but a function that seems to work with the few calls in evp_test.c static char * strsep(char **p,const char *sep) { char * p1 = *p ; while (**p != *sep) {

Re: OpenSSL and Solaris 8 / 64 bits

2001-08-29 Thread Sean O'Riordain
Hi Fabrice, which version are you using? afaik the 64-bit issue has been fixed... though i'm not sure if it is in the latest "release"... have you tried a recent snapshot? cheers, Sean O'Riordain Fabrice ANNIC wrote: > > Hello, > > has OpenSSL been tested on Solaris 8 64 bit ? > > I have tri

OpenSSL and Solaris 8 / 64 bits

2001-08-29 Thread Fabrice ANNIC
Hello, has OpenSSL been tested on Solaris 8 64 bit ? I have tried to compile it with gcc-3.0 by adding "-m64" in the command line of Configure. Compilation worked, I managed to get my .so in 64 bit. However, when I do "make tests" to tests the API, it fails in BN_square, and in other tests f