Sodium class abstract
A meta class that provides access to all toplevel libsodium API groups.
- Implementers
Properties
- crypto → Crypto
-
An instance of Crypto.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isolateFactory → SodiumFactory
-
Retrieves a factory method to create new sodium instances that use the
same native binaries.
no setter
- randombytes → Randombytes
-
An instance of Randombytes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → SodiumVersion
-
Returns the version of the underlying libsodium implementation.
no setter
Methods
-
createTransferrableKeyPair(
KeyPair keyPair) → TransferrableKeyPair -
Creates a boxed copy of the
keyPair
that can be transferred between isolates. -
createTransferrableSecureKey(
SecureKey secureKey) → TransferrableSecureKey -
Creates a boxed copy of the
secureKey
that can be transferred between isolates. -
materializeTransferrableKeyPair(
TransferrableKeyPair transferrableKeyPair) → KeyPair -
Extracts the KeyPair from the
transferrableKeyPair
. -
materializeTransferrableSecureKey(
TransferrableSecureKey transferrableSecureKey) → SecureKey -
Extracts the SecureKey from the
transferrableSecureKey
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pad(
Uint8List buf, int blocksize) → Uint8List - Provides sodium_pad.
-
runIsolated<
T> (SodiumIsolateCallback< T> callback, {List<SecureKey> secureKeys = const [], List<KeyPair> keyPairs = const []}) → Future<T> -
Runs the given
callback
with an isolate. -
secureAlloc(
int length) → SecureKey -
Allocates new memory for a SecureKey of
length
bytes. -
secureCopy(
Uint8List data) → SecureKey -
Allocates new memory for a SecureKey and copies the data from
data
. -
secureRandom(
int length) → SecureKey -
Allocates new memory for a SecureKey and fills it with
length
bytes of random data. -
toString(
) → String -
A string representation of this object.
inherited
-
unpad(
Uint8List buf, int blocksize) → Uint8List - Provides sodium_unpad.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited