Skip to contentSkip to conversation

minimum cipher in openssl ?

Openvpn-devel gary 3 participants 3 messages Sep 12, 2004 – Sep 13, 2004

lore
Share & tools
lore

gary

author
#0 lore raw

Hi,

I want to run openvpn on WRT54G but the crypto library of openssl is extremely large for the device. I understand that I can trim away some ciphers but would like to know what minimum ciphers I have to include. I want to include only 3 symmetric cipher (blowfish, des and aes) and sha1 for key stuff. What else is needed for a basic functional openvpn with TLS support ? No key generation function etc.(like the dh thing) is needed as that I can do on some other hosting machine(I assume).

#1 lore raw
Quoted 9 lines · gary

Hi,

I want to run openvpn on WRT54G but the crypto library of openssl is extremely large for the device. I understand that I can trim away some ciphers but would like to know what minimum ciphers I have to include. I want to include only 3 symmetric cipher (blowfish, des and aes) and sha1 for key stuff. What else is needed for a basic functional openvpn with TLS support ? No key generation function etc.(like the dh thing) is needed as that I can do on some other hosting machine(I assume).

This issue seems to be coming up more and more these days.

One could:

(1) Try to build a minimal OpenSSL. The problem here is that OpenVPN uses a lot of the OpenSSL API set. So figuring out what can be safely cut out is a problem. Certainly you could try removing unneeded ciphers and message digests, but that might not make a huge dent in the code size.

(2) Try to port OpenVPN to an alternate crypto library such as MatrixSSL.

James

#2 lore raw
In reply to gary

Hi Gary,

Quoted 7 lines

I want to run openvpn on WRT54G but the crypto library of openssl is extremely large for the device. I understand that I can trim away some ciphers but would like to know what minimum ciphers I have to include. I want to include only 3 symmetric cipher (blowfish, des and aes) and sha1 for key stuff. What else is needed for a basic functional openvpn with TLS support ? No key generation function etc.(like the dh thing) is needed as that I can do on some other hosting machine(I assume).

if you would format your eMails correctly, I had read it and not only when Jim replies.

However I have it running:

[email protected]...:~# openvpn --version
OpenVPN 2.0_test19 mipsel-unknown-linux-gnu [SSL] [LZO] built on Apr  7 2004
Copyright (C) 2002-2004 James Yonan <[email protected]...>
[email protected]...:~# ps axuww | grep [o]penvpn
  258 root       1964 S   /bin/openvpn --config /etc/openvpn/client.conf
[email protected]...:~# ls -al /bin/openvpn
-rwxrwxr-x    1 root     root       344756 Apr  7 14:32 /bin/openvpn

And I have also running the following stuff on wrt54g:
- DNS
- Masquerading
- ratsd
- Firewall (ipv6 and ipv4)
- pppoe
- ssh *server* and *client*
- wakeup on lan
- dyndns

All this applications are stored on the flash. A friend of mine also managed to compile and run screen on it.

The openvpn takes approx 1.5Mbyte (including libs).

Thomas