CryptoSys API Library Manual

CipherStream.File Method

Enciphers data in a file using specified stream cipher.

Syntax

[C#]
public static int File(
	string fileOut,
	string fileIn,
	byte[] key,
	byte[] iv,
	int counter,
	CipherStream.Algorithm streamAlg
)
[VB.NET]
Public Shared Function File ( _
	fileOut As String, _
	fileIn As String, _
	key As Byte(), _
	iv As Byte(), _
	counter As Integer, _
	streamAlg As CipherStream.Algorithm _
) As Integer

Parameters

fileOut
Name of output file to be created or overwritten
fileIn
Name of input file
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

fileOut and fileIn must not be the same

See Also

VB6/C equivalent: CIPHER_StreamFile

[Contents] [Index]

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

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