projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2010-03-12 Jb Evain <jbevain@novell.com>
[mono.git]
/
mcs
/
class
/
System.Core
/
System.Security.Cryptography
/
Aes.cs
diff --git
a/mcs/class/System.Core/System.Security.Cryptography/Aes.cs
b/mcs/class/System.Core/System.Security.Cryptography/Aes.cs
index db3f92c21a4f38fd72c2be7c5d09e02cc4d15513..3c7da47c1d2c08bc168aacd379127a1dfd60b1ac 100644
(file)
--- a/
mcs/class/System.Core/System.Security.Cryptography/Aes.cs
+++ b/
mcs/class/System.Core/System.Security.Cryptography/Aes.cs
@@
-42,7
+42,7
@@
namespace System.Security.Cryptography {
\r
public static new Aes Create ()
\r
{
\r
\r
public static new Aes Create ()
\r
{
\r
-
return Create ("System.Security.Cryptography.Aes"
);
\r
+
return Create ("System.Security.Cryptography.AesManaged, " + Consts.AssemblySystem_Core
);
\r
}
\r
\r
public static new Aes Create (string algName)
\r
}
\r
\r
public static new Aes Create (string algName)
\r
@@
-53,9
+53,11
@@
namespace System.Security.Cryptography {
protected Aes ()
{
\r
KeySizeValue = 256;
\r
protected Aes ()
{
\r
KeySizeValue = 256;
\r
- BlockSizeValue = 128;
\r
- FeedbackSizeValue = 128;
\r
-
\r
+ BlockSizeValue = 128;
+#if !NET_2_1
+ // Silverlight 2.0 only supports CBC mode (i.e. no feedback)
\r
+ FeedbackSizeValue = 128;
+#endif
\r
LegalKeySizesValue = new KeySizes [1];
\r
LegalKeySizesValue [0] = new KeySizes (128, 256, 64);
\r
\r
LegalKeySizesValue = new KeySizes [1];
\r
LegalKeySizesValue [0] = new KeySizes (128, 256, 64);
\r
\r