dotnet / dotnet/dotnet-api-docs
Add CryptographicException to all AsymmetricAlgorithm.ImportFromPem members
Open
area-System.Security
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
[ECDiffieHellman.ImportFromPem](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.ecdiffiehellman.importfrompem) describes the ArgumentException of not finding a valid PEM envelope, but doesn't mention the CryptographicException of the contents being invalid or not supported by the underlying platform.
Presumably this is true in all of the AsymmetricAlgorithm types.
Contributor guide
Assessment
This issue has not been assessed yet.