Skip to content

Commit 3c6ca60

Browse files
committed
fix incorrect platform constraint for ECDH
1 parent 4ba46dc commit 3c6ca60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptography_flutter/lib/src/flutter/flutter_ecdh.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class FlutterEcdh extends Ecdh implements PlatformCryptographicAlgorithm {
5959

6060
@override
6161
bool get isSupportedPlatform =>
62-
FlutterCryptography.isPluginPresent && isCupertino;
62+
FlutterCryptography.isPluginPresent && (isAndroid || isCupertino);
6363

6464
String get _curveName {
6565
switch (keyPairType) {

0 commit comments

Comments
 (0)