Re: [uClinux-dev] reg Lineo's port of freeswan on uclinux

From: Greg Ungerer (gerg@moreton.com.au)
Date: Tue Jan 23 2001 - 18:25:27 EST


Hi Prabhat,

Prabhat Avasare wrote:
> A few days back, I was very happy to read the news of Lineo
> software engineers porting freeswan onto uClinux -
> 
> http://www.lineo.ca/developer_info/technical_bulletins/nettel.html

I guess this is old news, we have had this going for
quite some time now :-)


> Some time back, I had also done the same, but for
> uClinux on Axis-Etrax board. Nice to see the data
> rate figures with NETtel - which processor is used
> in NETtel?

The NETtel is based on a Motorola ColdFire CPU (5307 @ 90MHz).

We currently use uClinux 2.0.38, with FreeSWAN 1.5.
(Although it is easy to port upto FreeSWAN 1.8).


> I also see that Lineo people have also changed freeswan
> to have hooks for hardware encryption. Is it anyway possible
> for me to have a look at those changes in freeswan for
> the hardware encryption hooks? Are the hooks more generic
> i.e. encryptions other than 3DES can be used or those
> hooks work just only with 3DES? Which version of freeswan
> was ported to uClinux?

We didn't modify freeswan as such for hardware crypto,
I coded the crypto hardware driver to implement the
standard set of DES/3DES lib calls. All you really need
is:

    des_set_key()
    des_cbc_encrypt()
    des_ede3_cbc_encrpt()

You could generalize and implement the others, but this
is all the base level FreeSWAN requires.

Note that this doesn't implement real off-loading of the
crypto work, it essentially busy polls, it is not keyed
of an interrupt.

You can find our patches (and a driver for the HIFN 7901)
at:

    http://www.moretonbay.com/coldfire/source.html

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Wizard           EMAIL:  gerg@lineo.com
Lineo (Integrated Products Group)                 PHONE: +61 7 3435 2888
825 Stanley St,                                   FAX:   +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia               WEB:     www.lineo.com
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:27 EDT