deriveKey method

Future deriveKey(
  1. dynamic algorithm,
  2. CryptoKey baseKey,
  3. dynamic derivedKeyType,
  4. bool extractable,
  5. Iterable<KeyUsage> keyUsages,
)

Implementation

Future<dynamic> deriveKey(
        dynamic algorithm,
        CryptoKey baseKey,
        dynamic derivedKeyType,
        bool extractable,
        Iterable<KeyUsage> keyUsages) =>
    js_util.promiseToFuture(js_util.callMethod(this, 'deriveKey', [
      algorithm,
      baseKey,
      derivedKeyType,
      extractable,
      keyUsages.map((e) => e.value)
    ]));