Re: C++ and C# cryptography compatibility

From: Pieter Philippaerts (Pieter_at_nospam.mentalis.org)
Date: 03/29/04


Date: Mon, 29 Mar 2004 17:07:40 +0200


"Michel Gallant" <neutron@NOSPAMistar.ca> wrote in message
> - there shouldn't be any issue with Endian-ness for symmetric encryption

CryptoAPI's symmetric keys are imported in little endian byte order, while
.NET uses big endian byte order.
So you'll need to reverse the symmetric key you're using in .NET when
importing it with the CryptoAPI [or vice versa].

Regards,
Pieter Philippaerts
http://mentalis.org/go.php?sl