Provides a crypto-transform used to read/write to a stream of hexidecimal characters.
Syntax
Visual Basic (Declaration) | |
---|
Public Class HexStream.Transform |
C# | |
---|
public class HexStream.Transform |
Example
Library/Library.Test/TestHexEncoding.cs
C# | Copy Code |
---|
using (ICryptoTransform xform = new HexStream.Transform(CryptoStreamMode.Read))
{
Assert.AreEqual(2, xform.InputBlockSize);
Assert.AreEqual(1, xform.OutputBlockSize);
Assert.AreEqual(true, xform.CanReuseTransform);
Assert.AreEqual(true, xform.CanTransformMultipleBlocks);
}
using (ICryptoTransform xform = new HexStream.Transform(CryptoStreamMode.Write))
{
Assert.AreEqual(1, xform.InputBlockSize);
Assert.AreEqual(2, xform.OutputBlockSize);
Assert.AreEqual(true, xform.CanReuseTransform);
Assert.AreEqual(true, xform.CanTransformMultipleBlocks);
} |
VB.NET | Copy Code |
---|
Using xform As ICryptoTransform = New HexStream.Transform(CryptoStreamMode.Read)
Assert.AreEqual(2, xform.InputBlockSize)
Assert.AreEqual(1, xform.OutputBlockSize)
Assert.AreEqual(True, xform.CanReuseTransform)
Assert.AreEqual(True, xform.CanTransformMultipleBlocks)
End Using
Using xform As ICryptoTransform = New HexStream.Transform(CryptoStreamMode.Write)
Assert.AreEqual(1, xform.InputBlockSize)
Assert.AreEqual(2, xform.OutputBlockSize)
Assert.AreEqual(True, xform.CanReuseTransform)
Assert.AreEqual(True, xform.CanTransformMultipleBlocks)
End Using |
Inheritance Hierarchy
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also