Skip to content

Commit b7f6cd4

Browse files
committed
fix NullReference in KeyExchangeECDH
for some reason d24fe20 introduced its own names here which (as far as I can see) were never part of the original BouncyCastle. Switched to the correct names.
1 parent d0df5f1 commit b7f6cd4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Renci.SshNet/Security/KeyExchangeECDH256.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override X9ECParameters CurveParameter
2121
{
2222
get
2323
{
24-
return SecNamedCurves.GetByName("P-256");
24+
return SecNamedCurves.GetByName("secp256r1");
2525
}
2626
}
2727

src/Renci.SshNet/Security/KeyExchangeECDH384.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override X9ECParameters CurveParameter
2121
{
2222
get
2323
{
24-
return SecNamedCurves.GetByName("P-384");
24+
return SecNamedCurves.GetByName("secp384r1");
2525
}
2626
}
2727

src/Renci.SshNet/Security/KeyExchangeECDH521.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override X9ECParameters CurveParameter
2121
{
2222
get
2323
{
24-
return SecNamedCurves.GetByName("P-521");
24+
return SecNamedCurves.GetByName("secp521r1");
2525
}
2626
}
2727

0 commit comments

Comments
 (0)