Class HexTranslator
- Namespace
- Org.BouncyCastle.Utilities.Encoders
- Assembly
- BouncyCastle.Cryptography.dll
A hex translator.
public class HexTranslator : ITranslator
- Inheritance
-
HexTranslator
- Implements
- Inherited Members
Methods
Decode(byte[], int, int, byte[], int)
Decode data from a byte array.
public int Decode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)
Parameters
inputbyte[]The input data array.
inOffintStart position within input data array.
lengthintThe amounty of data to process.
outBytesbyte[]The output data array.
outOffintThe position within the output data array to start writing from.
Returns
- int
The amount of data written.
Encode(byte[], int, int, byte[], int)
Encode some data.
public int Encode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)
Parameters
inputbyte[]Input data array.
inOffintStart position within input data array.
lengthintThe amount of data to process.
outBytesbyte[]The output data array.
outOffintThe offset within the output data array to start writing from.
Returns
- int
Amount of data encoded.
GetDecodedBlockSize()
Returns the decoded block size.
public int GetDecodedBlockSize()
Returns
- int
1
GetEncodedBlockSize()
Return encoded block size.
public int GetEncodedBlockSize()
Returns
- int
2