[I'm keeping this in openssl-dev, as it feels that's where it belongs]

In message <[EMAIL PROTECTED]> on Sat, 16 Oct 2004 14:32:54 +0000, "Paolo Serra" 
<[EMAIL PROTECTED]> said:

paolino55> I'm trying to integrate a new cipher (aes-ccm) into the
paolino55> crypto lib. I want to have the new algorithm available from
paolino55> every application linking the library but we have not found
paolino55> where we have to add the cipher definition to have it
paolino55> listed among the available ones.
[...]
paolino55> I don't need to have "cbc, ofc, ecb, ..." so I added in 
paolino55> /crypto/evp/evp_locl.h this lines:
paolino55> #define BLOCK_CIPHER_func_ccm(cname, cprefix, kstruct, ksched)
paolino55> #define BLOCK_CIPHER_def_ccm(cname, kstruct, nid, block_size, key_len, 
paolino55> iv_len, flags,init_key, cleanup, set_asn1, get_asn1, ctrl)

I assume you gave those macros some kind of value as well.  Could you
show us the full definition, please?

[...]
paolino55> and now, if I edit from the shell the command "make" it
paolino55> compiles a few seconds and answers this lines:
paolino55> 
paolino55> ../libcrypto.a(c_allc.o): In function `OpenSSL_add_all_ciphers':
paolino55> c_allc.o(.text+0x39d): undefined reference to `EVP_aes_ccm'
paolino55> collect2: ld returned 1 exit status
paolino55> make[1]: *** [openssl] Error 1
paolino55> make[1]: Leaving directory `/home/paolo/openssl/apps'
paolino55> make: *** [sub_all] Error 1
paolino55> 
paolino55> Is there anyone who can help me to overcome this error and
paolino55> address me how to continue my integration of this new
paolino55> cipher (which files to modify, ecc)

The only way to figure out what's wrong is for you to show us the full
definition of BLOCK_CIPHER_func_ccm and BLOCK_CIPHER_def_ccm.  Or send
me your version of evp_locl.h and e_aes.c.

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to