CryptoSys API Library Manual
Aes128.Decrypt Method (Byte[], Byte[], Mode, Byte[])
Decrypt data in byte array
Syntax
[C#]
public static byte[] Decrypt(
byte[] input,
byte[] key,
Mode mode,
byte[] iv
)
[VB.NET]
Public Shared Function Decrypt ( _
input As Byte(), _
key As Byte(), _
mode As Mode, _
iv As Byte() _
) As Byte()
Parameters
- input
- Input data
- key
- Key of exactly 16 bytes (128 bits)
- mode
- Type: Mode
Cipher Mode
- iv
- IV of exactly 16 bytes or null/Nothing for ECB mode
Return Value
Decrypted data in byte array or empty array on error
Remarks
For ECB and CBC modes, input data length must be an exact multiple of the block length (16 bytes)
See Also
VB6/C equivalent: AES128_BytesMode
[Contents] [Index]