| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // System.Security.Cryptography ICryptoTransform interface
- //
- // Authors:
- // Matthew S. Ford ([email protected])
- //
- // Copyright 2001 by Matthew S. Ford.
- //
- using System.Security.Cryptography;
- namespace System.Security.Cryptography {
- /// <summary>
- /// Crytographic functions that can process a stream of bytes implement this interface.
- /// This works by stringing together one or more ICryptoTransform classes with a stream.
- /// Data is passed from one to the next without the need of outside buffering/intervention.
- /// </summary>
- public interface ICryptoTransform {
-
- /// <summary>
- /// Whether the function can transform multiple blocks at a time.
- /// </summary>
- bool CanTransformMultipleBlocks {get;}
- /// <summary>
- /// Size of input blocks for the function.
- /// </summary>
- int InputBlockSize {get;}
- /// <summary>
- /// Size of the output blocks of the function.
- /// </summary>
- int OutputBlockSize {get;}
- /// <summary>
- /// FIXME: Process some data. A block at a time? Less than a block at a time?
- /// </summary>
- int TransformBlock (byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
- /// <summary>
- /// Processes the final part of the data. Also finalizes the function if needed.
- /// </summary>
- byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inputCount);
- }
- }
|