-
-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECDsa] Falls back to use BouncyCastle if BCL (Mono) doesn't support #1461
Conversation
Can we use this for .NET Framework (4.6.2) as well? So that we have 2 implementations instead of 3. Instead of the |
…Exception (in Mono)
@Rob-Hague @WojciechNagorski Could you please help re-trigger the CI? Or would you mind granting me permission for Appveyor? |
I suppose what I meant was, can we delete the custom CNG implementation so we just have (1) The normal BCL implementation with ECDsa; and if that is not supported then (2) The BouncyCastle implementation Currently, this does not fix #1406 because #1406 does not use the .NET Framework target (probably .NET Standard instead). You can see that because the failure is on ECDsa.Create which is only called under |
Since that would cause all .NET Framework applications to use BouncyCastle, that is probably not exactly what we want. I'm finding it difficult to read and understand what implementation is used when. I think we want:
But that does complicate the testing situation... |
Not sure if anybody uses Mono at Windows... I propose below logic:
|
I think we are proposing the same thing, so if it's easy to follow in the code, then sounds good |
We don't have NET47 as target framework. (Should we? Here's current simplified logic:
|
Update:
|
Yeah probably makes sense Is there a way to use the "Impl" pattern here that we have used in other places? |
I tried, but it's a little bit different with others. Anyway it's good to separate into different files. |
I iterated on it a bit and tested with a few different configurations. Will just wait for confirmation from mono... |
Fixes #1406