-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## Can't use EC256 on Linux/Mac | ||
## Can't use EC Keys on PowerShell Core | ||
|
||
The `ECDsa` implementation for non-Windows platforms utilizes [ECDsaOpenSsl](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.ecdsaopenssl). As of .NET Core 2.0 which is what is distributed with PowerShell Core 6, `ECDsaOpenSsl` doesn't contain a `SignData` method. | ||
In .NET Core 2.0 which is what is distributed with PowerShell Core 6, the [`ECDsaOpenSsl`](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.ecdsaopenssl) implementation is missing the `SignData` method which means we can't sign stuff using EC-based keys on non-Windows platforms. | ||
|
||
Additionally, `ECDsaCng` in PowerShell Core on Windows has the `SignData` method, but I can't get it to work for some reason. The same code that works in Desktop edition throws an exception in Core, *"Cannot find an overload for "SignData" and the argument count: "1"."* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters