Skip to content

Commit b76ba0a

Browse files
committed
fix: platform constraint for ECDH
1 parent 970562e commit b76ba0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cryptography_flutter/lib/src/flutter/flutter_ecdh.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import 'package:cryptography/cryptography.dart';
1616
import 'package:flutter/foundation.dart';
1717
import 'package:flutter/services.dart';
1818

19-
import '../../cryptography_flutter.dart';
2019
import '../_flutter_cryptography_implementation.dart';
2120
import '../_internal.dart';
2221

@@ -58,8 +57,7 @@ class FlutterEcdh extends Ecdh implements PlatformCryptographicAlgorithm {
5857
super.constructor();
5958

6059
@override
61-
bool get isSupportedPlatform =>
62-
FlutterCryptography.isPluginPresent && isCupertino;
60+
bool get isSupportedPlatform => isAndroid || isCupertino;
6361

6462
String get _curveName {
6563
switch (keyPairType) {

0 commit comments

Comments
 (0)