< Summary

Information
Class: Renci.SshNet.Security.KeyExchangeDiffieHellmanGroup1Sha1
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\KeyExchangeDiffieHellmanGroup1Sha1.cs
Line coverage
100%
Covered lines: 19
Uncovered lines: 0
Coverable lines: 19
Total lines: 48
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.cctor()100%1100%
get_Name()100%1100%
get_GroupPrime()100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\KeyExchangeDiffieHellmanGroup1Sha1.cs

#LineLine coverage
 1using Renci.SshNet.Common;
 2
 3namespace Renci.SshNet.Security
 4{
 5    /// <summary>
 6    /// Represents "diffie-hellman-group1-sha1" algorithm implementation.
 7    /// </summary>
 8    internal sealed class KeyExchangeDiffieHellmanGroup1Sha1 : KeyExchangeDiffieHellmanGroupSha1
 9    {
 410        private static readonly byte[] SecondOkleyGroupReversed =
 411            {
 412                0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81, 0x53, 0xe6, 0xec,
 413                0x51, 0x66, 0x28, 0x49, 0xe6, 0x1f, 0x4b, 0x7c, 0x11, 0x24, 0x9f, 0xae,
 414                0xa5, 0x9f, 0x89, 0x5a, 0xfb, 0x6b, 0x38, 0xee, 0xed, 0xb7, 0x06, 0xf4,
 415                0xb6, 0x5c, 0xff, 0x0b, 0x6b, 0xed, 0x37, 0xa6, 0xe9, 0x42, 0x4c, 0xf4,
 416                0xc6, 0x7e, 0x5e, 0x62, 0x76, 0xb5, 0x85, 0xe4, 0x45, 0xc2, 0x51, 0x6d,
 417                0x6d, 0x35, 0xe1, 0x4f, 0x37, 0x14, 0x5f, 0xf2, 0x6d, 0x0a, 0x2b, 0x30,
 418                0x1b, 0x43, 0x3a, 0xcd, 0xb3, 0x19, 0x95, 0xef, 0xdd, 0x04, 0x34, 0x8e,
 419                0x79, 0x08, 0x4a, 0x51, 0x22, 0x9b, 0x13, 0x3b, 0xa6, 0xbe, 0x0b, 0x02,
 420                0x74, 0xcc, 0x67, 0x8a, 0x08, 0x4e, 0x02, 0x29, 0xd1, 0x1c, 0xdc, 0x80,
 421                0x8b, 0x62, 0xc6, 0xc4, 0x34, 0xc2, 0x68, 0x21, 0xa2, 0xda, 0x0f, 0xc9,
 422                0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
 423                0x00
 424            };
 25
 26        /// <summary>
 27        /// Gets algorithm name.
 28        /// </summary>
 29        public override string Name
 30        {
 1831            get { return "diffie-hellman-group1-sha1"; }
 32        }
 33
 34        /// <summary>
 35        /// Gets the group prime.
 36        /// </summary>
 37        /// <value>
 38        /// The group prime.
 39        /// </value>
 40        public override BigInteger GroupPrime
 41        {
 42            get
 643            {
 644                return new BigInteger(SecondOkleyGroupReversed);
 645            }
 46        }
 47    }
 48}

Methods/Properties

.cctor()
get_Name()
get_GroupPrime()