[Mono-list] TripleDES encryption problem

Sebastien Pouliot spouliot@videotron.ca
Fri, 29 Aug 2003 14:55:41 -0400


The TripleDES class is completely implemented in Mono. There is a issue in
MACTripleDES because .NET 1.0 and 1.1 are incompatible in some cases (when
the data length is a multiple of the block size) and Mono is currently only
compatible with 1.0. However this isn't the MAC used in SSL nor TLS - so it
shouldn't affect you.

When you say that it works under Windows/MS.NET do you mean your TLS code
runs normally using the MS TripleDES implementation ?
If so I may have an idea on how to debug this.

Sebastien Pouliot
Security Architect, Motus Technologies, http://www.motus.com/
work: spouliot@motus.com
home: spouliot@videotron.ca

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of
Sent: 29 aout 2003 07:19
To: mono-list@lists.ximian.com
Subject: [Mono-list] TripleDES encryption problem


I'm making a basic TLS implementation in C#, now i'm testing it on linux
using mono, using RC4 my sample code runs fine but if i use TripleDES
the messages i sent seems to be bad encrypted, the openssl server raise
a fatal alert of BAd record MAC ( This is working well using Windows and
MS .NET ):

1024:error:1408F455:SSL routines:SSL3_GET_RECORD:decryption failed or
bad record mac:s3_pkt.c:424:

What is the status of the TripleDES classes ??

Best regards

Carlos Guzman Alvarez

Mono-list maillist  -  Mono-list@lists.ximian.com