Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Security.Crypto Class Reference

Helper methods for encrypting and decrypting streams of data. More...

Static Public Member Functions

static Task CryptoTransform (ICryptoTransform Transform, Stream Source, Stream Destination)
 Transforms a stream of data. More...
 
static async Task CryptoTransform (ICryptoTransform Transform, Stream Source, Stream Destination, int BufferSize)
 Transforms a stream of data. More...
 
static async Task< bool > CopyAsync (Stream From, Stream To, long DataLen)
 Copies DataLen number of bytes from From to To . More...
 

Detailed Description

Helper methods for encrypting and decrypting streams of data.

Definition at line 11 of file Crypto.cs.

Member Function Documentation

◆ CopyAsync()

static async Task< bool > Waher.Security.Crypto.CopyAsync ( Stream  From,
Stream  To,
long  DataLen 
)
static

Copies DataLen number of bytes from From to To .

Parameters
FromSource data stream.
ToDestination data stream.
DataLenNumber of bytes to copy.
Returns
If copy was successful.

Definition at line 71 of file Crypto.cs.

◆ CryptoTransform() [1/2]

static Task Waher.Security.Crypto.CryptoTransform ( ICryptoTransform  Transform,
Stream  Source,
Stream  Destination 
)
static

Transforms a stream of data.

Parameters
TransformCryptographic transform.
SourceSource.
DestinationDestination

Definition at line 19 of file Crypto.cs.

◆ CryptoTransform() [2/2]

static async Task Waher.Security.Crypto.CryptoTransform ( ICryptoTransform  Transform,
Stream  Source,
Stream  Destination,
int  BufferSize 
)
static

Transforms a stream of data.

Parameters
TransformCryptographic transform.
SourceSource.
DestinationDestination
BufferSizeIntermediate buffer size. (Default=65536 bytes)

Definition at line 31 of file Crypto.cs.


The documentation for this class was generated from the following file: