CryptoSys API Library Manual

CipherStream.Init Method

Initializes the context ready for repeated operations of CipherStream.Update

Syntax

[C#]
public int Init(
	byte[] key,
	byte[] iv,
	int counter,
	CipherStream.Algorithm streamAlg
)
[VB.NET]
Public Function Init ( _
	key As Byte(), _
	iv As Byte(), _
	counter As Integer, _
	streamAlg As CipherStream.Algorithm _
) As Integer

Parameters

key
Key
iv
Initialization Vector (IV, nonce) or null for Arcfour
counter
Counter value for ChaCha20 only, otherwise ignored. Use 0 for default.
streamAlg
Type: CipherStream.Algorithm
Stream cipher algorithm

Return Value

0 if successful or nonzero error code

Remarks

See Also

VB6/C equivalent: CIPHER_StreamInit

[Contents] [Index]

[PREV: CipherStream.Hex Method...]   [Contents]   [Index]   
   [NEXT: CipherStream.Instance Method...]

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