CryptoSys API Library Manual

Tdea.InitEncrypt Method (Byte[], Mode, Byte[])

Initializes with key, mode and IV ready to start encrypting

Syntax

[C#]
public int InitEncrypt(
	byte[] key,
	Mode mode,
	byte[] iv
)
[VB.NET]
Public Function InitEncrypt ( _
	key As Byte(), _
	mode As Mode, _
	iv As Byte() _
) As Integer

Parameters

key
Key of exactly 24 bytes (192 bits)
mode
Type: Mode
Cipher Mode
iv
IV of exactly 8 bytes or null/Nothing for ECB mode

Return Value

Zero (0) if successful; otherwise it returns a nonzero error code

See Also

VB6/C equivalent: TDEA_Init

[Contents] [Index]

[PREV: Tdea.InitDecrypt Method (String, Mode, String)...]   [Contents]   [Index]   
   [NEXT: Tdea.InitEncrypt Method (String, Mode, String)...]

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