Key class

Represents an underlying key object in memory

A key is used to encrypt and decrypt data. Typically, keys are generated within the Backend library and are immutable.

Implementers

Constructors

Key(String name, Pointer<NativeType> obj)
Constructs a key referencing the underlying C obj in memory
Key.ofType(Key from)
Constructs a key from the existing Key

Properties

data List<int>
Returns the key data as a List
no setter
hashCode int
The hash code for this object.
no setterinherited
hexData List<String>
Returns data as a List
no setter
library Pointer<NativeType>
The memory address of the underlying C library
getter/setter pair
name String
The friendly name of the key.
getter/setter pair
obj Pointer<NativeType>
The memory address of the underlying C key object
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialized Pointer<Uint8>
Byte array containing the key
getter/setter pair
size int
Size of the serialized key
getter/setter pair
type int
Type of key
getter/setter pair

Methods

load(Pointer<NativeType> fhe, Pointer<Uint8> serialData, int serialSize) → dynamic
Loads a key from a byte array
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() → void
Saves the key to a byte array
toString() String
A string representation of this object.
inherited

Operators

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