Class Aes
Class used for implementing Advanced Encryption Standard algorithm.
Inheritance
System.Object
Aes
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class Aes : Object
Constructors
Aes(Aes.KeySize, Byte[])
Initializes a new instance of the Aes class.
Declaration
public Aes(Aes.KeySize keySize, byte[] keyBytes)
Parameters
Type | Name | Description |
---|---|---|
Aes.KeySize | keySize | Key size. |
System.Byte[] | keyBytes | Key bytes |
Methods
Cipher(Byte[], Byte[], Int32)
Encipher 16 bit input
Declaration
public int Cipher(byte[] input, byte[] output, int outOff)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | input | 16 bit Input |
System.Byte[] | output | Output value |
System.Int32 | outOff |
Returns
Type |
---|
System.Int32 |
Dump()
Dump
Declaration
public void Dump()
DumpKey()
Dump key.
Declaration
public string DumpKey()
Returns
Type |
---|
System.String |
DumpTwoByTwo(Byte[,])
Dump two by two.
Declaration
public string DumpTwoByTwo(byte[, ] a)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[,] | a |
Returns
Type |
---|
System.String |
InvCipher(Byte[], Byte[], Int32)
Decipher 16-bit input
Declaration
public int InvCipher(byte[] input, byte[] output, int outOff)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | input | |
System.Byte[] | output | |
System.Int32 | outOff |
Returns
Type |
---|
System.Int32 |