Click or drag to resize

TdeaDecrypt(String, String, Mode, String) Method

Decrypt hex-encoded data string.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string Decrypt(
	string inputHex,
	string keyHex,
	Mode mode,
	string ivHex
)

Parameters

inputHex  String
Hex-encoded input data
keyHex  String
Hex-encoded key representing exactly 24 bytes (192 bits)
mode  Mode
Cipher Mode
ivHex  String
Hex-encoded IV representing exactly 8 bytes or "" for ECB mode

Return Value

String
Decrypted data in hex-encoded string or empty string on error
Remarks
For ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length
See Also