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.fromBytes(Afhe fhe, Uint8List bytes)
- Loads a Ciphertext from a serialized binary format.
-
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.
-
toBytes(
) → Uint8List - Converts a Ciphertext into a serialized binary format.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited