Constructors
constructor
- new XSalsa20(nonce: Uint8Array, key: Uint8Array): XSalsa20
-
Parameters
-
nonce: Uint8Array
-
key: Uint8Array
Properties
Private buffer
buffer: Uint8Array
Methods
stream
- stream(length: number): Uint8Array
-
Parameters
Returns Uint8Array
update
- update(input: Uint8Array, output?: Uint8Array): Uint8Array
-
Parameters
-
input: Uint8Array
-
Default value output: Uint8Array = new Uint8Array(input.length)
Returns Uint8Array