Skip to content

Commit 3394baf

Browse files
krwqRon Petrusha
authored andcommitted
Compat doc: GetECDsaPublicKey correctly handles brainpool curves (microsoft#1018)
* Create GetECDsaPublicKey-correctly-handles-brainpool-curves.md * Update Documentation/compatibility/GetECDsaPublicKey-correctly-handles-brainpool-curves.md Co-Authored-By: krwq <mordotymoja@gmail.com> * Update Documentation/compatibility/GetECDsaPublicKey-correctly-handles-brainpool-curves.md Co-Authored-By: krwq <mordotymoja@gmail.com> * Update GetECDsaPublicKey-correctly-handles-brainpool-curves.md
1 parent bfeb9cc commit 3394baf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## ECDsaCertificateExtensions.GetECDsaPublicKey correctly handles Brainpool curves
2+
3+
### Scope
4+
Edge case
5+
6+
### Version Introduced
7+
4.8
8+
9+
### Source Analyzer Status
10+
NotPlanned
11+
12+
### Change Description
13+
Starting with .NET Framework 4.8, the <xref:System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.GetECDsaPublicKey%2A?displayProperty=nameWithtype> method correctly handles all named curves supported by the OS, including the Brainpool elliptic curves.
14+
15+
### Recommended Action
16+
If you encounter compatibility issues with this change on the .NET Framework 4.8 or a later version, you can opt-out of it by adding the following line to the \<runtime> section of the app.config file:
17+
18+
```xml
19+
<appSettings>
20+
<add key="Switch.System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.UseLegacyPublicKeyReader" value="true" />
21+
</appSettings>
22+
```
23+
24+
### Affected APIs
25+
26+
* `M:System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.GetECDsaPublicKey(System.Security.Cryptography.X509Certificates.X509Certificate2)`
27+
28+
### Category
29+
Security

0 commit comments

Comments
 (0)