File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
cryptography_flutter/lib/src/flutter Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import 'package:cryptography/cryptography.dart';
1616import 'package:flutter/foundation.dart' ;
1717import 'package:flutter/services.dart' ;
1818
19- import '../../cryptography_flutter.dart' ;
2019import '../_flutter_cryptography_implementation.dart' ;
2120import '../_internal.dart' ;
2221
@@ -58,9 +57,8 @@ class FlutterEcdh extends Ecdh implements PlatformCryptographicAlgorithm {
5857 super .constructor ();
5958
6059 @override
61- bool get isSupportedPlatform =>
62- FlutterCryptography .isPluginPresent && isCupertino;
63-
60+ bool get isSupportedPlatform => isAndroid || isCupertino;
61+ bool get isSupportedPlatform => FlutterCryptography .isPluginPresent && (isAndroid || isCupertino);
6462 String get _curveName {
6563 switch (keyPairType) {
6664 case KeyPairType .p256:
You can’t perform that action at this time.
0 commit comments