+2009-04-29 Sebastien Pouliot <sebastien@ximian.com>
+
+ * PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
+ are not available in the BCL.
+
2008-08-07 Sebastien Pouliot <sebastien@ximian.com>
* SymmetricTransform.cs: Make this (more) usable with SL2 limited
return emptySHA1;
else if (hash is SHA256)
return emptySHA256;
+#if !NET_2_1
else if (hash is SHA384)
return emptySHA384;
else if (hash is SHA512)
return emptySHA512;
+#endif
else
return hash.ComputeHash ((byte[])null);
}
+2009-04-29 Sebastien Pouliot <sebastien@ximian.com>
+
+ * DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
+ * HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do
+ not include in NET_2_1
+ * MACTripleDES.cs: Do not include in NET_2_1
+ * RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
+ * Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
+ Do not include in NET_2_1 (AES is available in System.Core.dll)
+ * RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
+ * SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
+ SHA1Managed is available.
+ * SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
+ * SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
+ * TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
+ in NET_2_1
+
2009-04-29 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConfig.cs: Change to partial class and don't include this
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Globalization;
using System.Runtime.InteropServices;
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
}
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
}
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
namespace System.Security.Cryptography {
}
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Globalization;
using System.Runtime.InteropServices;
};
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+
+#if !NET_2_1
\r
using System.Runtime.InteropServices;
\r
}\r
}\r
}\r
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
#endregion
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
using System.Runtime.InteropServices;
}
}
+#if !NET_2_1
+
#if NET_2_0
[ComVisible (true)]
#endif
sha.Initialize ();
}
}
+#endif // NET_2_1
}
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
\r
namespace System.Security.Cryptography {\r
}\r
}\r
}\r
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
namespace System.Security.Cryptography {
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
\r
namespace System.Security.Cryptography {\r
}\r
}\r
}\r
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
namespace System.Security.Cryptography {
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Globalization;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
}
}
+
+#endif
+
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
}
}
}
+
+#endif
+