Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2012 15:44:14 +0400
From:      aram_baghomian@hushmail.com
To:        freebsd-questions@freebsd.org
Subject:   add new encryption algorithm to racoon
Message-ID:  <20120218114414.5FE2414DBD8@smtp.hushmail.com>

next in thread | raw e-mail | index | archive | help

Hi, 

	I developed an encryption algorithm for freeBsd crypto module. 

	I want to add this algorithm to racoon ipsec-tools for freebsd that
it can recognize it 

	In it's config file and use it for encryption connections. 

	I use the 'des' algorithm as a sample and create C files and headers
same as it in all part 

	Of racoon source code. 

	In compile time it make this this error: 
	------------------------------------------------------------------ 

	… 

	/bin/sh /usr/local/bin/libtool --tag=CC    --mode=link cc
-D_GNU_SOURCE  -DSYSCONFDIR="/usr/local/etc/racoon" 
-DADMINPORTDIR="/var/db/racoon" -pipe -g  -Wall -Werror -Wno-unused
-lcrypto  -rpath=/usr/lib:/usr/local/lib -o eaytest eaytest.o plog.o
logger.o crypto_openssl_test.o vmbuf.o str2val.o misc_noplog.o  
-lradius -lutil -lcrypto  -lreadline -lcrypt -lcrypt -L/lib -R/lib
-lradius 

	libtool: link: cc -D_GNU_SOURCE -DSYSCONFDIR="/usr/local/etc/racoon"
-DADMINPORTDIR="/var/db/racoon" -pipe -g -Wall -Werror -Wno-unused
-rpath=/usr/lib:/usr/local/lib -o eaytest eaytest.o plog.o logger.o
crypto_openssl_test.o vmbuf.o str2val.o misc_noplog.o  -lutil -lcrypto
-lreadline -lcrypt -L/lib -lradius -Wl,-rpath -Wl,/lib 

	crypto_openssl_test.o(.text+0x2620): In function `eay_sa3_weakkey': 

	./crypto_openssl.c:1314: undefined reference to `SA3_is_weak_key' 

	crypto_openssl_test.o(.text+0x2637): In function `eay_sa3_keylen': 

	./crypto_openssl.c:1322: undefined reference to `EVP_sa3_cbc' 

	*** Error code 1 
	Stop in
/usr/ports/security/ipsec-tools/work/ipsec-tools-0.7.3/src/racoon. 

	*** Error code 1 

	… 

	---------------------------------------------------------------- 
	I edit /usr/include/evp.h and add the name of functions but it not
work. 

	Should i edit the /usr/src/crypto/openssl directory's content to add
my algorithm?

	Should i Edit the libcrypto or libssl library to add my algorithm?   
 

	What should I do? 
	Thanks. 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120218114414.5FE2414DBD8>