Click or drag to resize

TdeaEncrypt(Byte, Byte, Mode, Byte) Method

Encrypt data in byte array.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] Encrypt(
	byte[] input,
	byte[] key,
	Mode mode,
	byte[] iv
)

Parameters

input  Byte
Input data
key  Byte
Key of exactly 24 bytes (192 bits)
mode  Mode
Cipher Mode
iv  Byte
IV of exactly 8 bytes or null for ECB mode

Return Value

Byte
Ciphertext 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
See Also