[Click] Encryption Functions

Jason Haas jjhaas at gmail.com
Mon Jan 23 11:19:14 EST 2006


Hi Beyers,

Thanks, I'll probably use the SHA-1 code for another piece of our project.
Essentially, right now, I'm trying to make the IPSecDES element, but with
AES.  DES isn't sufficient for our research purposes.  I've resolved my
initial errors as stated in my original post, they were specific to the code
I'm trying to port.  They were dynamically named macros, which is why they
didn't grep.  However, I now get:

conf/aes-test.click:22: While configuring 'AESEncrypt at 6 :: AESEncrypt':
   unknown argument type ''!
Router could not be initialized!
click-install: Done

I see the element listed in the elementmap.xml with the correct port
settings.  (1/1 h/h x/x)  It points to the correct .cc file has the right
requires, which are also correctly listed.  I did:
./configure --with-linux=/usr/src/linux --enable-linuxmodule --enable-local
I've also tried combinations including the above and --enable-kassert
(asserts are used in the code) and --disable-userlevel.  I've tried this
with click 1.4.3 and the latest CVS.  Here's the config:

 InfiniteSource(DATA \<00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01
02 00 00 02  13 69 13 69  00 14 d6 41  55 44 50 20
70 61 63 6b  65 74 21 0a>, LIMIT 5, STOP true)
	-> Strip(14)
	-> Align(4, 0)    // in case we're not on x86
	-> CheckIPHeader(BADSRC 18.26.4.255 2.255.255.255 1.255.255.255)
        -> Print(ok)
	-> AESEncrypt("aaaaaaaaaaaaaaaa")
	-> Discard;

There's only one configuration argument and it's supposed to be a string.

Thanks,
Jason


More information about the click mailing list