Re: newbie installation problem - Makefile.org not found

2007-06-25 Thread Endhy Aziz

Hi,
Here's the Makefile.org (attachment). If you're downloading the complete
source code, this file should have been included.

Regards,

--Endhy


Makefile.org
Description: Binary data


Re: compiling openssl without support for sslv2

2007-06-08 Thread Endhy Aziz

Hi,

Steve wrote :

I looked in the INSTALL file, and this is the information I
received:



no-   Build without the specified cipher (bf, cast, des, dh, dsa,
  hmac, md2, md5, mdc2, rc2, rc4, rc5, rsa, sha).
  The crypto/ directory can be removed after
running
  "make depend".


As far as I know, there is no more options except with 'no-' command
to performed that operations. To build without any cipher included, just try
to add 'no-' for each algorithm to your configure target.

Regards,

Endhy


Re: Newbie questions

2007-05-24 Thread Endhy Aziz

I wrote :
"One of the chapter, "Designing With SSL" may help ".

Should be :
One of the chapter, "Coding With SSL" may help

Regards,

--Endhy









Re: Newbie questions

2007-05-24 Thread Endhy Aziz

See "SSL and TLS" by Eric Rescorla. It describes SSL protocol completely,
including how to program with SSL. One of the chapter, "Designing With SSL"
may help you.



--Endhy


Problem in cipher length test processing

2007-05-18 Thread Endhy Aziz

Hi,
I'm trying to implement a new stream cipher algorithm in OpenSSL
(stream cipher Rabbit, see RFC 4503 -- in my previous email, there was
a mistake, I tiped 4509, really sorry). This new algorithm will be
used for testing purpose. I've written and added new lines in OpenSSL
0.9.8c. So far this algorithm works for encryption/decryption only
(not yet for SSL) -- with the argument 'openssl -enc -rabbit -in ...
-out ...'.
At present, I'm working on the code for the cipher test ('rabbittest'
- I adopted the codes from rc4test.c). The code has already been
working on encryption test (test 0...3). Unfortunately, it shows
errors when it tests the cipher length test.

D:\Projects\Openssl-0.9.8c\out32dll>rabbittest
test 0 ok
test 1 ok
test 2 ok
test 3 ok
test end processing .
error in Rabbit length processing
output: 8e 65
expect: 8e 00
error in Rabbit length processing
output: 8e 65 b4
expect: 8e 65 00
error in Rabbit length processing
output: 8e 65 b4 ff
expect: 8e 65 b4 00
error in Rabbit length processing
output: 8e 65 b4 ff 14
expect: 8e 65 b4 ff 00
...
...

I've checked the code many times, but I couldn't find the bug. Below
is the 'rabbittest' codes :

#include 
#include 
#include 

#include "../e_os.h"

#ifdef OPENSSL_NO_RABBIT
int main(int argc, char *argv[])
{
   printf("No Rabbit support\n");
   return(0);
}
#else
#include 

static unsigned char keys[7][30]={

{16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},

{16,0xAC,0xC3,0x51,0xDC,0xF1,0x62,0xFC,0x3B,0xFE,0x36,0x3D,0x2E,0x29,0x13,0x28,0x91},

{16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},

{16,0xAC,0xC3,0x51,0xDC,0xF1,0x62,0xFC,0x3B,0xFE,0x36,0x3D,0x2E,0x29,0x13,0x28,0x91},
};

static unsigned char data_len[7]={31,31,31,31};
static unsigned char data[7][32]={

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},

{0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,
  
0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},

{0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,
  
0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x12,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},
{0},
};

static unsigned char output[7][32]={

{0x02,0xF7,0x4A,0x1C,0x26,0x45,0x6B,0xF5,0xEC,0xD6,0xA5,0x36,0xF0,0x54,0x57,0xB1,
  
0xA7,0x8A,0xC6,0x89,0x47,0x6C,0x69,0x7B,0x39,0x0C,0x9C,0xC5,0x15,0xD8,0xE8,0x88},

{0x9C,0x51,0xE2,0x87,0x84,0xC3,0x7F,0xE9,0xA1,0x27,0xF6,0x3E,0xC8,0xF3,0x2D,0x3D,
  
0x19,0xFC,0x54,0x85,0xAA,0x53,0xBF,0x96,0x88,0x5B,0x40,0xF4,0x61,0xCD,0x76,0xF5},

{0x10,0xC3,0x1C,0x64,0xB6,0xEE,0xA6,0x1A,0xFE,0xE2,0xF3,0x4E,0x60,0xFF,0x9A,0x5E,
  
0xB5,0xBE,0x90,0xF1,0xD7,0xC7,0xA4,0x94,0x2B,0x38,0xCA,0xBD,0x85,0x73,0x25,0x67},

{0x8E,0x65,0xB4,0xFF,0x14,0x68,0xB2,0x06,0xB3,0x13,0xA0,0x46,0x58,0x58,0xE0,0xD2,
  
0x0B,0xC8,0x02,0xFD,0x3A,0xF8,0x72,0x79,0x9A,0x6F,0x16,0x8C,0xF1,0x66,0xBB,0x1A},
{0},
};

int main(int argc, char *argv[])
{
int err=0;
unsigned int i, j;
unsigned char *p;
RABBIT_KEY key;
unsigned char obuf[512];

for (i=0; i<4; i++)
{
rabbit_key_setup(&key,/*keys[i][0],*/ &(keys[i][1]));
memset(obuf,0x00,sizeof(obuf));
rabbit(&key,&(data[i][0]),obuf,data_len[i]);
if (memcmp(obuf,output[i],data_len[i]+1) != 0)
{
printf("error calculating Rabbit\n");
printf("output:");
for (j=0; jhttp://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Problem compiling with debug option in OpenSuSE 10.2

2007-05-14 Thread Endhy Aziz

Hi all,
I'm trying to compile OpenSSL-0.9.8c with debug option, but some
errors shown below occurs :
...
...
make[2]: Entering directory `/home/endhy/Documents/openssl-0.9.8d/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl  -L.. -lcrypto -lefence -lefence
-ldl}"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DBN_DEBUG -DREF_CHECK
-DCONF_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -march=i486 -Wall
-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM -DAES_ASM}"; LIBPATH=`for x in $LIBDEPS; do if echo $x |
grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi;
done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`;
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o
${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o
dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o
rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o
gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o
s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o
pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o ${LIBDEPS} )
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
cannot find -lefence
collect2: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/endhy/Documents/openssl-0.9.8d/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/endhy/Documents/openssl-0.9.8d/apps'
make: *** [build_apps] Error 1
(Then stop..)

Can anyone tell me how to solve it? (I've tried to compile without
debug option and I didn't find any trouble. OpenSuSE 10.2 use gcc
4.1.2)


Best regards,

--Endhy
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]