Click or drag to resize

CipherInitEncrypt(String, String, CipherAlgorithm, Mode) Method

Initializes with hex-encoded key, iv, algorithm and mode ready to start encrypting with repeated update operations.

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public bool InitEncrypt(
	string keyHex,
	string ivHex,
	CipherAlgorithm cipherAlg,
	Mode mode
)

Parameters

keyHex  String
Hex-encoded key of exact length for block cipher algorithm.
ivHex  String
Hex-encoded Initialization Vector (IV) of exactly the block size or "" for ECB mode.
cipherAlg  CipherAlgorithm
Cipher algorithm
mode  Mode
Cipher mode

Return Value

Boolean
True if successful, False if failed.
See Also