Class AesCtr
AES-256 in counter mode with a 128-bit big-endian counter, built from ECB as .NET has no CTR mode.
Inherited Members
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
Syntax
public static class AesCtr
Methods
| Edit this page View SourceTransform(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)
Encrypt or decrypt data; the operation is its own inverse.
Declaration
public static byte[] Transform(ReadOnlySpan<byte> key, ReadOnlySpan<byte> iv, ReadOnlySpan<byte> data)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | key | |
| ReadOnlySpan<byte> | iv | |
| ReadOnlySpan<byte> | data |
Returns
| Type | Description |
|---|---|
| byte[] |