Hi,
    I tried to add one more mode (my version of counter mode) to des part,
and I faced compilation problem. I am working on openssl-0.9.6h, RedHat 8
using kernel 2.4.20, gcc 3.2.1 on an Intel Pentium III desktop.

Here are what I have done:
1 added function des_ectr_encrypt() to file crypto/des/ncbc_enc.c
2 added function des_ectr_cipher() to file crypto/evp/e_des.c
3 added EVP_CIPHER cname##_ctr, EVP_CIPHER * EVP_##cname##_ectr() to file
crypto/evp/evp_locl.h for des's calling of BLOCK_CIPHER_defs macro.
4 added EVP_add_cipher(EVP_des_ectr()) to file c_allc.c & ssl_algs.c

all functions/objecst above are more or less similar to des_cbc version
coding.
until here everythings are ok.

5 added "algorithm 10            : DES-ECTR              : des-ectr" to file
crypto/objects/objects.txt
6 added "des_ectr                406" to file crypto/objects/obj_mac.num
until here compilation still ok, but when come to run,
the following error comes out:
Segmentation fault
if I issue a "openssl" cmd.

if I issue a"openssl des-cbc -in data -out data.out -k test -a" cmd, the
following errors come out,
make: *** [des1] Segmentation fault

p/s: very sorry that for number 5, I just 10 for the number besides
algorithm, which I can't figure out what the number is for?
appreciate helps.

thanks & regards,


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to