< Summary

Information
Class: Renci.SshNet.Security.Org.BouncyCastle.Asn1.X9.X9Curve
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\asn1\x9\X9Curve.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 40
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%10%
.ctor(...)0%20%
get_Curve()100%10%
GetSeed()100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\asn1\x9\X9Curve.cs

#LineLine coverage
 1using System;
 2
 3using Renci.SshNet.Security.Org.BouncyCastle.Math.EC;
 4using Renci.SshNet.Security.Org.BouncyCastle.Utilities;
 5
 6namespace Renci.SshNet.Security.Org.BouncyCastle.Asn1.X9
 7{
 8    internal class X9Curve
 9    {
 10        private readonly ECCurve curve;
 11        private readonly byte[] seed;
 12
 13        public X9Curve(
 14            ECCurve curve)
 015            : this(curve, null)
 016        {
 017        }
 18
 019        public X9Curve(
 020            ECCurve  curve,
 021            byte[]  seed)
 022        {
 023            if (curve == null)
 024                throw new ArgumentNullException("curve");
 25
 026            this.curve = curve;
 027            this.seed = Arrays.Clone(seed);
 028        }
 29
 30        public ECCurve Curve
 31        {
 032            get { return curve; }
 33        }
 34
 35        public byte[] GetSeed()
 036        {
 037            return Arrays.Clone(seed);
 038        }
 39    }
 40}