CipherState class abstract

A state of Cipher, which helps you to encrypt or decrypt data that does not fit in memory.

Implementers

Constructors

CipherState()

Properties

cipher Cipher
The cipher used by this state.
no setter
hashCode int
The hash code for this object.
no setterinherited
mac Mac
MAC.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(List<int> input, {required Mac? expectedMac, Uint8List? possibleBuffer}) Future<List<int>>
Adds input to the sequence of converted bytes and finishes converting all bytes.
convertChunkSync(List<int> input, {Uint8List? possibleBuffer}) List<int>
Adds input to the sequence of converted bytes. Returns a list of converted bytes, which may be empty or larger the input.
initialize({required bool isEncrypting, required SecretKey secretKey, required List<int> nonce, List<int> aad = const [], int keyStreamIndex = 0}) Future<void>
Initializes the state with the given secretKey, nonce, and aad.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited