Helper methods for encrypting and decrypting streams of data.
More...
|
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...
|
|
Helper methods for encrypting and decrypting streams of data.
Definition at line 11 of file Crypto.cs.
◆ 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
-
From | Source data stream. |
To | Destination data stream. |
DataLen | Number 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
-
Transform | Cryptographic transform. |
Source | Source. |
Destination | Destination |
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
-
Transform | Cryptographic transform. |
Source | Source. |
Destination | Destination |
BufferSize | Intermediate buffer size. (Default=65536 bytes) |
Definition at line 31 of file Crypto.cs.
The documentation for this class was generated from the following file:
- C:/My Projects/IoTGateway/Security/Waher.Security/Crypto.cs