[Mono-list] Problem with System.Cryptography.RSAParameters...
Giuseppe Greco
giuseppe.greco@agamura.com
Sat, 06 Sep 2003 07:41:37 +0200
On Sat, 2003-09-06 at 01:49, Sebastien Pouliot wrote:
> Gius,
>
> This is probably because
> (a) params is a reserved keyword with C# - i.e. your 2 sample lines won't
> compile with VS.NET, or
Yes, by renaming this variable (e.g. parameters),
the code compiles fine...
(arrch! I didn't know that params is a reserved keyword).
> (b) RSA is a (abstract) class from which RSACryptoServiceProvider inherits
> (and it, somehow, mess up with mcs).
Thank you all,
Gius_.
>
> 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 Giuseppe Greco
> Sent: 5 septembre 2003 16:16
> To: Mono
> Subject: [Mono-list] Problem with System.Cryptography.RSAParameters...
>
>
> Hi all,
>
> does anybody know why the following code does not compile?
>
> using System.Cryptography;
>
> RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
> ...
> RSAParameters params = RSA.ExportParameters(false); // does not compile
> ...
>
> The compiler always complies like this:
>
> syntax error, expecting OPEN_BRACKET OPEN_PARENS DOT COLON ASSIGN STAR
> OP_INC OP_DEC OP_MULT_ASSIGN OP_DIV_ASSIGN OP_MOD_ASSIGN OP_ADD_ASSIGN
> OP_SUB_ASSIGN OP_SHIFT_LEFT_ASSIGN OP_SHIFT_RIGHT_ASSIGN OP_AND_ASSIGN
> OP_XOR_ASSIGN OP_OR_ASSIGN OP_PTR IDENTIFIER
>
> gekkota/src/Gekkota.Security/Gekkota.Security.Cryptography/AsymmetricCryptor
> .cs(405) error CS1002: Expecting `;'
>
> The code above does compile with csc on Windows.
>
> Thanks,
> Gius_.
>
>
> --
> ----------------------------------------
> Giuseppe Greco
>
> ::agamura::
>
> phone: +41 (0)91 604 67 65
> mobile: +41 (0)76 390 60 32
> email: giuseppe.greco@agamura.com
> web: www.agamura.com
> ----------------------------------------
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email: giuseppe.greco@agamura.com
web: www.agamura.com
----------------------------------------