SecretKeyData constructor

SecretKeyData(
  1. List<int> bytes, {
  2. bool overwriteWhenDestroyed = false,
  3. String? debugLabel,
})

Constructs a secret key with the given bytes.

Optionally, you can provide a debugLabel that is used in error messages and toString.

If overwriteWhenDestroyed is true, the bytes will be overwritten with zeros when destroy is called.

Implementation

SecretKeyData(
  List<int> bytes, {
  bool overwriteWhenDestroyed = false,
  String? debugLabel,
}) : this._(
        bytes,
        overwriteWhenDestroyed: overwriteWhenDestroyed,
        debugLabel: debugLabel,
      );