CryptoSys API Library Manual

Cipher.InitDecrypt Method (String, String, CipherAlgorithm, Mode)

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

Syntax

[C#]
public bool InitDecrypt(
	string keyHex,
	string ivHex,
	CipherAlgorithm cipherAlg,
	Mode mode
)
[VB.NET]
Public Function InitDecrypt ( _
	keyHex As String, _
	ivHex As String, _
	cipherAlg As CipherAlgorithm, _
	mode As Mode _
) As Boolean

Parameters

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

Return Value

True if successful, False if failed.

See Also

VB6/C equivalent: CIPHER_InitHex

[Contents] [Index]

[PREV: Cipher.InitDecrypt Method (Byte, Byte, CipherAlgorithm, Mode)...]   [Contents]   [Index]   
   [NEXT: Cipher.InitEncrypt Method (Byte, Byte, CipherAlgorithm, Mode)...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.