<PackageReference Include="SSH.NET" Version="2023.0.0" />

KeyExchangeDiffieHellmanGroup14Sha256

Represents "diffie-hellman-group14-sha256" algorithm implementation.
using Renci.SshNet.Common; namespace Renci.SshNet.Security { internal sealed class KeyExchangeDiffieHellmanGroup14Sha256 : KeyExchangeDiffieHellmanGroupSha256 { private static readonly byte[] SecondOkleyGroupReversed = new byte[257] { byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, 104, 170, 172, 138, 90, 142, 114, 21, 16, 5, 250, 152, 24, 38, 210, 21, 229, 106, 149, 234, 124, 73, 149, 57, 24, 23, 88, 149, 246, 203, 43, 222, 201, 82, 76, 111, 240, 93, 197, 181, 143, 162, 7, 236, 162, 131, 39, 155, 3, 134, 14, 24, 44, 119, 158, 227, 59, 206, 54, 46, 70, 94, 144, 50, 124, 33, 24, 202, 8, 108, 116, 241, 4, 152, 188, 74, 78, 53, 12, 103, 109, 150, 150, 112, 7, 41, 213, 158, 187, 82, 133, 32, 86, 243, 98, 28, 150, 173, 163, 220, 35, 93, 101, 131, 95, 207, 36, 253, 168, 63, 22, 105, 154, 211, 85, 28, 54, 72, 218, 152, 5, 191, 99, 161, 184, 124, 0, 194, 61, 91, 228, 236, 81, 102, 40, 73, 230, 31, 75, 124, 17, 36, 159, 174, 165, 159, 137, 90, 251, 107, 56, 238, 237, 183, 6, 244, 182, 92, byte.MaxValue, 11, 107, 237, 55, 166, 233, 66, 76, 244, 198, 126, 94, 98, 118, 181, 133, 228, 69, 194, 81, 109, 109, 53, 225, 79, 55, 20, 95, 242, 109, 10, 43, 48, 27, 67, 58, 205, 179, 25, 149, 239, 221, 4, 52, 142, 121, 8, 74, 81, 34, 155, 19, 59, 166, 190, 11, 2, 116, 204, 103, 138, 8, 78, 2, 41, 209, 28, 220, 128, 139, 98, 198, 196, 52, 194, 104, 33, 162, 218, 15, 201, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, 0 }; public override string Name => "diffie-hellman-group14-sha256"; public override BigInteger GroupPrime => new BigInteger(SecondOkleyGroupReversed); } }