Table of Contents

Class AesCtrParams

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
[ToObject]
public class AesCtrParams : Algorithm
Inheritance
AesCtrParams
Inherited Members

Remarks

AES is a block cipher, meaning that it splits the message into blocks and encrypts it a block at a time. In CTR mode, every time a block of the message is encrypted, an extra block of data is mixed in. This extra block is called the "counter block".

A given counter block value must never be used more than once with the same key:

Typically this is achieved by splitting the initial counter block value into two concatenated parts:

Essentially: the nonce should ensure that counter blocks are not reused from one message to the next, while the counter should ensure that counter blocks are not reused within a single message.

NOTE

See Appendix B of the NIST SP800-38A standard for more information.

-CTR mode is defined in section 6.5 of the NIST SP800-38A standard.
-Encrypt(Union187, CryptoKey, Union224).
-Decrypt(Union187, CryptoKey, Union224).
-WrapKey(KeyFormat, CryptoKey, CryptoKey, Union187).
-UnwrapKey(KeyFormat, Union224, CryptoKey, Union187, Union187, bool, List<KeyUsage>).

See also on MDN

Constructors

AesCtrParams()

public AesCtrParams()

Fields

Counter

[Value("counter")]
public required Union224 Counter

Field Value

Union224

Length

[Value("length")]
public required byte Length

Field Value

byte