CryptoSys API Library Manual

Cipher.InitDecrypt Method (Byte[], Byte[], CipherAlgorithm, Mode)

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

Syntax

[C#]
public bool InitDecrypt(
	byte[] key,
	byte[] iv,
	CipherAlgorithm cipherAlg,
	Mode mode
)
[VB.NET]
Public Function InitDecrypt ( _
	key As Byte(), _
	iv As Byte(), _
	cipherAlg As CipherAlgorithm, _
	mode As Mode _
) As Boolean

Parameters

key
Key of exact length for block cipher algorithm.
iv
Initialization Vector (IV) of exactly the block size or null/Nothing 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_Init

[Contents] [Index]

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

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