Ciphertext class
Represents an underlying C ciphertext object.
A ciphertext is an encrypted message. It is the output of the encryption function, and the input to the decryption and operation functions.
Constructors
- Ciphertext(Backend backend)
- Initializes a ciphertext using the provided backend.
-
Ciphertext.fromPointer(Backend backend, Pointer<
NativeType> obj) - Initializes a ciphertext using the provided Backend and Pointer.
Properties
- backend ↔ Backend
-
Represents the string representation of the ciphertext.
Selects the Backend used for the encryption scheme.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
obj
↔ Pointer<
NativeType> -
A pointer to the memory address of the underlying C++ object.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveSize → int
-
Calculates the number of bytes of the serialized ciphertext.
no setter
- size → int
-
Returns the number of bytes of the ciphertext.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
) → Pointer< Uint8> - Saves the Ciphertext to a non-human-readable format. Useful for saving to disk or sending over the network.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited