unwrapKey method

Future<CryptoKey> unwrapKey(
  1. KeyFormat format,
  2. dynamic wrappedKey,
  3. CryptoKey unwrappingKey,
  4. dynamic unwrapAlgorithm,
  5. dynamic unwrappedKeyAlgorithm,
  6. bool extractable,
  7. Iterable<KeyUsage> keyUsages,
)

Implementation

Future<CryptoKey> unwrapKey(
        KeyFormat format,
        dynamic wrappedKey,
        CryptoKey unwrappingKey,
        dynamic unwrapAlgorithm,
        dynamic unwrappedKeyAlgorithm,
        bool extractable,
        Iterable<KeyUsage> keyUsages) =>
    js_util.promiseToFuture(js_util.callMethod(this, 'unwrapKey', [
      format.value,
      wrappedKey,
      unwrappingKey,
      unwrapAlgorithm,
      unwrappedKeyAlgorithm,
      extractable,
      keyUsages.map((e) => e.value)
    ]));