SecureKey.fromList constructor

SecureKey.fromList(
  1. Sodium sodium,
  2. Uint8List data
)

Allocates new memory for a SecureKey and copies the data from data.

Convenience factory constructor that redirects to Sodium.secureCopy and calls it with data on sodium.

Implementation

factory SecureKey.fromList(Sodium sodium, Uint8List data) =>
    sodium.secureCopy(data);