dotnet / dotnet/dotnet-api-docs

Add CryptographicException to all AsymmetricAlgorithm.ImportFromPem members

Open
#9,531 1 comment 0 reactions 1 assignee Claimed by @vcsjones View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.