The AesCtrParams object represents the object that should be passed as the algorithm parameter into the encrypt and decrypt operation when using the AES-CTR algorithm.
For more details, head to the MDN Web Crypto API documentation on AES-CTR.
Properties
Property | Type | Description |
---|---|---|
name | string | Should be set to AES-CTR. |
counter | ArrayBuffer, TypedArray, or DataView | The initial value of the counter block. This must be 16-bytes long, like the AES block size. |
length | number | The number of bits in the counter block that are used for the actual counter. It is recommended to use 64 (half of the counter block). |
Example
example-webcrypto-aesctrparams.js