Skip to content

UnimplementedError: Ecdh.p256(length: 32).newKeyPair() on on Android #170

Open

Description

@joshuajylin

Does cryptography or cryptography_flutter support ECDH p256 on Android?

Activity

  1. phillippbertram commented on May 7, 2024

    @phillippbertram

    I have the same issue.

    It seems that the CryptographyFlutterPlugin.kt should support ECDH algorithms:

    After some debugging, I found that the the isSupportedPlatform in flutter_ecdh.dart returns false if the current platform is not a Cupertino device.

      @override
      bool get isSupportedPlatform =>
          FlutterCryptography.isPluginPresent && isCupertino;

    Maybe an easy fix would be to remove the && isCupertino statement? 🤷

  2. joaquingrech commented on Aug 6, 2025

    @joaquingrech

    This bug also happens on windows build, it seems it is forced to ios and android, leaving out all other platforms although they should be supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions