Rijndael .Net Managed Class VS Rijndael Win32 C++ (MFC) Class


I'm having an hard time with Rijndael encryption. Before elaborating
more on the problem, let me explain to what I have to do.

A. A client on a remote computer is running on Win9x or NT a Win32 C++
(MFC to be more specific) client. This client is connected to a remote
server and many web services, which are XML SOAP based. The client
receives Rijndael encrypted information from each services and has to
decode it. It can also sends informations to the server but that
information has to be crypted into Rijndael. The class I've included in
my MFC project is from George Anescu from The Code Project. The class
is encrypting and decrypting fine

B. On the side of the server, there are few webservices in VB.Net and
C#. Bottom line, the server is running everything on the .Net
framework, so managed classes. In order to crypt and decrypt the
informations, it uses the managed class
System.Security.Cryptography.RijndaelManaged from .Net Framework. So on
the server side, the encryption is very easy since it's running on

Ok now that you got a big picture of the situation, I can elaborate
more. And by the way, sorry for my bad english (!!). Basically, my
Rijndael Win32 Class on my client can't decrypt what the server is
crypting. I don't know if it's because the Rijndael class on .Net is
managed, but my client won't decrypt anything. And vice versa, my
server can't decrypt my client encrypted informations.

From what I know, .Net is using one more parameter for it's crypting
class, the initialization vector. To be honest, I don't know what the
IV is. But I sure know it's not in any Win32 Rijndael I've seen so far.

As exemple :

The server is using "Ae7b6D333K" as initialization vector.
The server AND client are both using "1234" as encryption key.

In order to test the encryption on client side, a test XML file is
encrypted than decrypted by using the Rijndael Win32 Class locally.

The client sends XML SOAP data to the server with Rijndael encryption.
The server can't decode it (missing IV??). The server then send an
encrypted XML SOAP information by using it's Rijndael managed class
from .Net Framework, the client can't decrypt it (missing IV on client

Bottom line, is there a way to use the Rijndael .Net Managed class with
a Rijndael Win32 C++ ? And what is the initialization vector ? Why is
it only in .Net and not native C++ ?

Thanks for any help guys :)



Relevant Pages

  • Re: Rijndael .Net Managed Class VS Rijndael Win32 C++ (MFC) Class
    ... I'm having an hard time with Rijndael encryption. ... A client on a remote computer is running on Win9x or NT a Win32 C++ ... server and many web services, ...
  • Re: Socket Server with Encryption help
    ... Before the client ... Authentication protocols are fiercely difficult to get right. ... by Needham and Schroeder "Using encryption for authentication in large ... Client connects into Server and Server accepts the connection. ...
  • Re: Auto-update protocol
    ... to transfer even with a single client and no interference. ... shared secret/public key is the only way to do the encryption. ... successfully decryption is the authentication. ... you can get using a generic farm server, but TFTP does not have any ...
  • Question on client/server application
    ... (one will act as a simple TCP server and the other will be a simple ... TCP client). ... What is the simplest way for me to implement a secure connection ... There are plenty of encryption libraries out ...
  • RE: Implementing RSACryptoServiceProvider *and* JavaScript
    ... JavaScript: hashing, synchronous encryption, and asynchronous ... This will enable me to ensure security between the client ... Send these back to the server. ...