Initializes a new instance of VirgilStreamCipher.
VirgilStreamCipher objects are not meant to be created with the new
operator, use VirgilCrypto.createStreamCipher to create an
instance.
A single VirgilPublicKey or an array of VirgilPublicKey's to to encrypt the data with.
Indicates whether the final method has been called.
Instance of VirgilSeqCipher native class.
Frees the memory occupied by seqCipher in the browser. In node.js this is a noop.
Returns any remaining encrypted or decrypted data depending on current
mode.
Once final has been called, this instance cannot be used to encrypt
or decrypt data, attempts to call any method including final will
result in an error being thrown.
This method also automatically calls dispose.
Optional. Indicating whether to automatically
free the memory occupied by internal seqSigner object in the
browser.
Default is true. false is used to perform operations in inherited classes.
If you pass false as an argument you should call dispose method manually.
In node.js this argument is ignored because the memory will be freed by the garbage collector.
Starts sequential encryption process following the algorithm below:
The data passed to the VirgilStreamCipher.update method after this method is called will be encrypted with the KEY1
Encrypt of decrypt chunk of data based on current mode.
Chunk of data to encrypt \ decrypt
If data is a string, specifies its
encoding, otherwise is ignored. Default is 'utf8'.
Class responsible for encryption of streams of data.