+2004-03-10 Sebastien Pouliot <sebastien@ximian.com>
+
+ * FromBase64Transform.cs: Now throws ObjectDisposedException and
+ return true for CanReuseTransform (as MS implementation).
+
2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
* DSA.cs : fixed incorrectly modified catch for debugging.
}
- /// <summary>
- /// </summary>
public bool CanTransformMultipleBlocks {
- get {
- return false;
- }
+ get { return false; }
}
public virtual bool CanReuseTransform {
- get { return false; }
+ get { return true; }
}
/// <summary>
return ptr;
}
-
private byte [] lookupTable;
+
private byte lookup(byte input) {
byte ret;
if ((input >= lookupTable.Length) ||
byte [] outputBuffer,
int outputOffset)
{
+ if (m_disposed)
+ throw new ObjectDisposedException ("FromBase64Transform");
+
int n;
byte [] src;
int srcOff;
res = DoTransform (tmpBuff, 0, count & (~3), outputBuffer, outputOffset) ;
}
-
return res;
}
int inputOffset,
int inputCount)
{
+ if (m_disposed)
+ throw new ObjectDisposedException ("FromBase64Transform");
+
byte [] src;
int srcOff;
int n;
srcOff = inputOffset;
}
-
int dataLen = accPtr + n;
byte [] tmpBuf = new byte [dataLen];
Array.Copy (res, newres, actLen);
return newres;
- } else
- return res;
+ }
+ else
+ return res;
}
} // FromBase64Transform