MIME-Version: 1.0 Sender: fyellin@...277... In-Reply-To: <20090528055401.GB24851@...1066...> References: <20090528055401.GB24851@...1066...> Date: Wed, 27 May 2009 23:17:39 -0700 Message-ID: From: Frank Yellin Content-Type: multipart/alternative; boundary=001636283644b5d60d046af2ea12 Subject: Re: [Openvpn-devel] Unable to use -OFB or -CFB ciphers in OpenVPN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net --001636283644b5d60d046af2ea12 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit [Just to you, not the list.] I figured that someone had to have noticed this problem before. But when I googled "OpenVPN BF-OFB" or "OpenVPN BF-CFB", I couldn't find anything. This bug is particularly strange because just before the bug, there is code that's supposed to deal with -CFB and -OFB mode. But then it doesn't do anything. It almost feels like this code was never tested. I didn't have any trouble with my brief tests using BF-CFB over UDP, once I deleted the offending line. But I wasn't trying anything difficult. Mainly just making sure the connection was there and that it didn't die. On Wed, May 27, 2009 at 10:54 PM, Victor Wagner wrote: > On 2009.05.27 at 10:48:30 -0700, Frank Yellin wrote: > > > I posted the following onto the OpenVPN forum, but it was suggested > > that I would be better off mailing directly to this list. > > ========================= > > I seem to have found a bug in 2.1_rc16 that is also apparent in > earlier > > versions. Although OpenVPN claims to support -CFB and -OFB cipher > > modes, using them seems to cause OpenVPN to crash consistently. > > > > For example, when I run the simple TLS example on the 2.1 > documentation > > page, it works fine. But if I add "--cipher bf-cfb" to both the > client > > and server command lines, one or the other will crash. The error > > message is always "Assertion failed at crypto.c:162". The crasher is > > always the first one to try and send an encrypted message. > > I've reported this problem more than a year ago, but nothing changed. > I really don't understand why openvpn prefers CBC modes. There is > nothing wrong with CFB and OFB neither from securith nor from > performance point of view. > > But it is not only problem with non-CBC ciphers. If you try to use > preshared keys, you'll find out that they are explicitely disabled > unless --test-crypto option is given, even if your compile with > -DALLOW_NON_CBC_CIPHERS. > > Also, I've encountered some problems with UDP transport and stream > ciphers which I haven't find time to debug yet. > > > > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > --001636283644b5d60d046af2ea12 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable [Just to you, not the list.]

I figured that someone had to have noti= ced this problem before.=A0 But when I googled "OpenVPN BF-OFB"= =A0 or=A0 "OpenVPN BF-CFB", I couldn't find anything.

= This bug is particularly strange because just before the bug, there is code= that's supposed to deal with -CFB and -OFB mode.=A0 But then it doesn&= #39;t do anything.=A0 It almost feels like this code was never tested.

I didn't have any trouble with my brief tests using BF-CFB over UDP= , once I deleted the offending line.=A0 But I wasn't trying anything di= fficult.=A0 Mainly just making sure the connection was there and that it di= dn't die.



On Wed, May 27, 2009 at 10:54 PM, Vi= ctor Wagner <vitus= @...1066...> wrote:
On 2009.05.27 at 10:48:30 -0700, Frank Yellin wrote:

> =A0 =A0I posted the following onto the OpenVPN forum, but it was sugge= sted
> =A0 =A0that I would be better off mailing directly to this list.
> =A0 =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
> =A0 =A0I seem to have found a bug in 2.1_rc16 that is also apparent in= earlier
> =A0 =A0versions. Although OpenVPN claims to support -CFB and -OFB ciph= er
> =A0 =A0modes, using them seems to cause OpenVPN to crash consistently.=
>
> =A0 =A0For example, when I run the simple TLS example on the 2.1 docum= entation
> =A0 =A0page, it works fine. =A0But if I add "--cipher bf-cfb"= ; to both the client
> =A0 =A0and server command lines, one or the other will crash. The erro= r
> =A0 =A0message is always "Assertion failed at crypto.c:162".= The crasher is
> =A0 =A0always the first one to try and send an encrypted message.

I've reported this problem more than a year ago, but nothing chan= ged.
I really don't understand why openvpn prefers CBC modes. There is
nothing wrong with CFB and OFB neither from securith nor from
performance point of view.

But it is not only problem with non-CBC ciphers. If you try to use
preshared keys, you'll find out that they are explicitely disabled
unless --test-crypto option is given, even if your compile with
-DALLOW_NON_CBC_CIPHERS.

Also, I've encountered some problems with UDP transport and stream
ciphers which I haven't find time to debug yet.




---------------------------------------------------------------------------= ---
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals= . Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &<= br> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian=
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@...1199...= sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--001636283644b5d60d046af2ea12--