imported everything from my branch (which is slightly harmless).
[mono.git] / mcs / class / corlib / System.Security.Cryptography / DSACryptoServiceProvider.cs
index e7e74f8e7f31a50bde22fe3101d214f2d5799dfe..7e000fbdfcef3041192da69e35298b139885f963 100644 (file)
@@ -9,7 +9,7 @@
 // (C) 2002
 // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
 // Portions (C) 2003 Ben Maurer
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -40,6 +40,7 @@ using Mono.Security.Cryptography;
 namespace System.Security.Cryptography {
 
 #if NET_2_0
+       [ComVisible (true)]
        public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm {
 #elif NET_1_1
        public sealed class DSACryptoServiceProvider : DSA {
@@ -280,13 +281,16 @@ namespace System.Security.Cryptography {
                [ComVisible (false)]
                public byte[] ExportCspBlob (bool includePrivateParameters)
                {
-                       return null;
+                       throw new NotImplementedException ("CryptoConvert doesn't currently support DSA");
                }
 
                [MonoTODO ("call into CryptoConvert (doesn't currently support DSA)")]
                [ComVisible (false)]
                public void ImportCspBlob (byte[] rawData)
                {
+                       if (rawData == null)
+                               throw new ArgumentNullException ("rawData");
+                       throw new NotImplementedException ("CryptoConvert doesn't currently support DSA");
                }
 #endif
        }