Constructors
constructor
- new CTR(cipher, iv): CTR
Returns CTR
Methods
clean
- clean(): this
Returns this
setCipher
- setCipher(cipher, iv): this
Returns this
stream
- stream(dst): void
Returns void
streamXOR
- streamXOR(src, dst): void
Parameters
- src: Uint8Array
- dst: Uint8Array
Returns void
CTR implements counter cipher mode.
Note that CTR mode is malleable and generally should not be used without authentication. Instead, use an authenticated encryption mode, such as GCM.