Ver código fonte

2002-01-05 Ravi Pratap <[email protected]>

	* CryptoAPITransform.cs, DESCryptoProvider.cs : MonoTODO attribute
	decoration.

	* HashAlgorithm.cs, MD5.cs, SHA1.cs, SHA256.cs, SHA384.cs : Ditto.

	* SHA512.cs, SymmetricAlgorithm.cs, ToBase64Transform.cs,
	AsymmetricAlgorithm.cs, CryptoStream.cs, DSA.cs, DSASignatureDeformatter.cs,
	DSASignatureFormatter.cs, SignatureDescription.cs : Ditto.

svn path=/trunk/mcs/; revision=1848
Ravi Pratap M 24 anos atrás
pai
commit
76218d8771

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/AsymmetricAlgorithm.cs

@@ -98,6 +98,7 @@ namespace System.Security.Cryptography {
 		/// Creates a specific implementation of the given asymmetric algorithm.
 		/// </summary>
 		/// <param name="algName">the given algorithm</param>
+		[MonoTODO]
 		public static AsymmetricAlgorithm Create (string algName) {
 			// TODO: use reflection to create a new instance of the given algorithm
 			return null;

+ 10 - 0
mcs/class/corlib/System.Security.Cryptography/ChangeLog

@@ -1,4 +1,14 @@
+2002-01-05  Ravi Pratap  <[email protected]>
 
+	* CryptoAPITransform.cs, DESCryptoProvider.cs : MonoTODO attribute
+	decoration.
+
+	* HashAlgorithm.cs, MD5.cs, SHA1.cs, SHA256.cs, SHA384.cs : Ditto.
+
+	* SHA512.cs, SymmetricAlgorithm.cs, ToBase64Transform.cs, 
+	AsymmetricAlgorithm.cs, CryptoStream.cs, DSA.cs, DSASignatureDeformatter.cs,
+	DSASignatureFormatter.cs, SignatureDescription.cs : Ditto.
+	
 Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <[email protected]>
 
 	* MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,

+ 10 - 4
mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs

@@ -20,6 +20,7 @@ namespace System.Security.Cryptography
 		/// <summary>
 		/// Indicates if the Transform object can transform multiple blocks
 		/// </summary>
+		[MonoTODO]
 		public bool CanTransformMultipleBlocks
 		{
 			get 
@@ -29,6 +30,7 @@ namespace System.Security.Cryptography
 			}
 		}
 
+		[MonoTODO]
 		public int InputBlockSize
 		{
 			get {
@@ -36,7 +38,8 @@ namespace System.Security.Cryptography
 				return 0;
 			}
 		}
-		
+
+		[MonoTODO]
 		public IntPtr KeyHandle 
 		{
 			get {
@@ -44,7 +47,8 @@ namespace System.Security.Cryptography
 				return IntPtr.Zero;
 			}
 		}
-		
+
+		[MonoTODO]
 		public int OutputBlockSize 
 		{
 			get {
@@ -52,14 +56,16 @@ namespace System.Security.Cryptography
 				return 0;
 			}
 		}
-		
+
+		[MonoTODO]
 		public int TransformBlock(byte[] inputBuffer, int inputOffset, 
 		                          int inputCount, byte[] outputBuffer, int outputOffset)
 		{
 			// TODO: implement
 			return 0;
 		}
-		
+
+		[MonoTODO]
 		public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
 		{
 			// TODO: implement

+ 8 - 4
mcs/class/corlib/System.Security.Cryptography/CryptoStream.cs

@@ -76,22 +76,26 @@ namespace System.Security.Cryptography
 			}
 		}
 
+		[MonoTODO]
 		public override int Read(byte[] buffer, int offset, int count)
 		{
 			// TODO: implement
 			return 0;
 		}
-		
+
+		[MonoTODO]
 		public override void Write(byte[] buffer, int offset, int count)
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public override void Flush()
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public void FlushFinalBlock()
 		{
 			if (_mode != CryptoStreamMode.Write)
@@ -99,7 +103,7 @@ namespace System.Security.Cryptography
 			
 			// TODO: implement
 		}
-		
+
 		public override long Seek(long offset, SeekOrigin origin)
 		{
 			throw new NotSupportedException("cannot seek a CryptoStream");

+ 2 - 0
mcs/class/corlib/System.Security.Cryptography/DES.cs

@@ -530,12 +530,14 @@ namespace System.Security.Cryptography {
 		{
 		}
 
+		[MonoTODO]
 		public static new DES Create()
 		{
 			// TODO: implement
 			return null;
 		}
 
+		[MonoTODO]
 		public static new DES Create(string name)
 		{
 			// TODO: implement

+ 2 - 0
mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs

@@ -134,6 +134,7 @@ namespace System.Security.Cryptography {
 		}
 
 
+		[MonoTODO]
 		public virtual byte [] TransformFinalBlock (byte [] inputBuffer, int inputOffset, int inputCount)
 		{
 			// TODO: add decryption support
@@ -214,6 +215,7 @@ namespace System.Security.Cryptography {
 
 		// FIXME: Ought to be in DES.cs
 
+		[MonoTODO ("Ought to be in DES.cs")]
 		public /*override*/ byte[] Key {
 			get {
 				return this.key;

+ 4 - 2
mcs/class/corlib/System.Security.Cryptography/DSA.cs

@@ -21,7 +21,8 @@ namespace System.Security.Cryptography
 		{
 			return new DSACryptoServiceProvider();
 		}
-		
+
+		[MonoTODO]
 		public static new DSA Create(string algName)
 		{
 			// TODO: implement
@@ -31,7 +32,8 @@ namespace System.Security.Cryptography
 		public abstract byte[] CreateSignature(byte[] rgbHash);
 		
 		public abstract DSAParameters ExportParameters(bool includePrivateParameters);
-		
+
+		[MonoTODO]
 		public override void FromXmlString(string xmlString) 
 		{
 			if (xmlString == null)

+ 8 - 4
mcs/class/corlib/System.Security.Cryptography/DSASignatureDeformatter.cs

@@ -15,27 +15,31 @@ namespace System.Security.Cryptography
 	/// </summary>
 	public class DSASignatureDeformatter : AsymmetricSignatureDeformatter
 	{
-		
+		[MonoTODO]
 		public DSASignatureDeformatter()
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public DSASignatureDeformatter(AsymmetricAlgorithm key)
 		{
 			// TODO: implement
 		}
+
 		
 		public override void SetHashAlgorithm(string strName)
 		{
 			throw new CryptographicException("This method is not used");
 		}
-		
+
+		[MonoTODO]
 		public override void SetKey(AsymmetricAlgorithm key)
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
 		{
 			// TODO: implement

+ 10 - 5
mcs/class/corlib/System.Security.Cryptography/DSASignatureFormatter.cs

@@ -15,28 +15,33 @@ namespace System.Security.Cryptography
 	/// </summary>
 	public class DSASignatureFormatter : AsymmetricSignatureFormatter
 	{
-		
+
+		[MonoTODO]
 		public DSASignatureFormatter() 
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public DSASignatureFormatter(AsymmetricAlgorithm key)
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public override byte[] CreateSignature(byte[] rgbHash)
 		{
 			// TODO: implement
 			return null;
 		}
-		
+
+		[MonoTODO]
 		public override void SetHashAlgorithm(string strName)
 		{
 			// TODO: implement
 		}
-		
+
+		[MonoTODO]
 		public override void SetKey(AsymmetricAlgorithm key)
 		{
 			// TODO: implement

+ 4 - 0
mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs

@@ -28,6 +28,7 @@ namespace System.Security.Cryptography {
 		/// FIXME: Always true for hashes?
 		/// Get whether or not the hash can transform multiple blocks at a time.
 		/// </summary>
+		[MonoTODO]
 		public virtual bool CanTransformMultipleBlocks {
 			get {
 				return true;
@@ -57,6 +58,7 @@ namespace System.Security.Cryptography {
 		/// Creates a specific implementation of the general hash idea.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create.</param>
+		[MonoTODO]
 		public static HashAlgorithm Create (string st) {
 			return Create ();
 		}
@@ -100,6 +102,7 @@ namespace System.Security.Cryptography {
 		/// <summary>
 		/// FIXME: Not quire valid for the hashes?  Returns 1?
 		/// </summary>
+		[MonoTODO]
 		public virtual int InputBlockSize {
 			get {
 				return 1;
@@ -109,6 +112,7 @@ namespace System.Security.Cryptography {
 		/// <summary>
 		/// FIXME: Not quire valid for the hashes?  Returns 1?
 		/// </summary>
+		[MonoTODO]
 		public virtual int OutputBlockSize {
 			get {
 				return 1;

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/MD5.cs

@@ -35,6 +35,7 @@ namespace System.Security.Cryptography {
 		/// Creates a new derived implementation.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>
+		[MonoTODO]
 		public static new MD5 Create (string st) {
 			return Create();
 		}

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/SHA1.cs

@@ -35,6 +35,7 @@ namespace System.Security.Cryptography {
 		/// Creates a new derived class.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>
+		[MonoTODO]
 		public static new SHA1 Create (string st) {
 			return Create();
 		}

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/SHA256.cs

@@ -36,6 +36,7 @@ namespace System.Security.Cryptography {
 		/// Creates a new derived class.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>
+		[MonoTODO]
 		public static new SHA256 Create (string st) {
 			return Create ();
 		}

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/SHA384.cs

@@ -36,6 +36,7 @@ namespace System.Security.Cryptography {
 		/// Creates a new derived class.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>
+		[MonoTODO]
 		public static new SHA384 Create (string st) {
 			return Create();
 		}

+ 1 - 0
mcs/class/corlib/System.Security.Cryptography/SHA512.cs

@@ -36,6 +36,7 @@ namespace System.Security.Cryptography {
 		/// Creates a new derived class.
 		/// </summary>
 		/// <param name="st">FIXME: No clue.  Specifies which derived class to create?</param>
+		[MonoTODO]
 		public static new SHA512 Create (string st) {
 			return Create();
 		}

+ 4 - 1
mcs/class/corlib/System.Security.Cryptography/SignatureDescription.cs

@@ -15,6 +15,7 @@ namespace System.Security.Cryptography {
 	/// <summary>
 	/// LAMESPEC: no sdk doc available for this class by the time of beta 2
 	/// </summary>
+	[MonoTODO]
 	public class SignatureDescription {
 		private string _DeformatterAlgorithm;
 		private string _DigestAlgorithm;		
@@ -78,6 +79,7 @@ namespace System.Security.Cryptography {
 			}
 		}
 
+		[MonoTODO]
 		public virtual AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key) 
 		{
 			// TODO: Implement
@@ -91,7 +93,8 @@ namespace System.Security.Cryptography {
 		{
 			return HashAlgorithm.Create(_DigestAlgorithm);
 		}
-		
+
+		[MonoTODO]
 		public virtual AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
 		{
 			// TODO: Implement

+ 2 - 0
mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs

@@ -75,6 +75,7 @@ namespace System.Security.Cryptography {
 		/// <summary>
 		/// Gets or sets the actual Initial Vector
 		/// </summary>
+		[MonoTODO]
 		public virtual byte[] IV {
 			get {
 				if (this.IVValue == null)
@@ -245,6 +246,7 @@ namespace System.Security.Cryptography {
 		/// Creates a specific implementation of the given symmetric algorithm.
 		/// </summary>
 		/// <param name="algName">the given algorithm</param>
+		[MonoTODO]
 		public static SymmetricAlgorithm Create (string algName) {
 			// TODO: Use Reflection to create a new algorithm instance
 			return null;

+ 2 - 1
mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs

@@ -174,7 +174,8 @@ namespace System.Security.Cryptography {
 
 
 
-	// FIXME: Ought to be in a standalone file.
+	
+	[MonoTODO ("Put me in a separate file")]
 	internal sealed class Base64Table {
 
 		// This is the Base64 alphabet as described in RFC 2045