# < 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

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
.ctor(...) | 100% | 1 | 0%
.ctor(...) | 0% | 2 | 0%
get_Curve() | 100% | 1 | 0%
GetSeed() | 100% | 1 | 0%

# File(s)

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

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `using Renci.SshNet.Security.Org.BouncyCastle.Math.EC;`
|  | `4` |  | `using Renci.SshNet.Security.Org.BouncyCastle.Utilities;`
|  | `5` |  | ``
|  | `6` |  | `namespace 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)`
| 0 | `15` |  | `: this(curve, null)`
| 0 | `16` |  | `{`
| 0 | `17` |  | `}`
|  | `18` |  | ``
| 0 | `19` |  | `public X9Curve(`
| 0 | `20` |  | `ECCurve curve,`
| 0 | `21` |  | `byte[] seed)`
| 0 | `22` |  | `{`
| 0 | `23` |  | `if (curve == null)`
| 0 | `24` |  | `throw new ArgumentNullException("curve");`
|  | `25` |  | ``
| 0 | `26` |  | `this.curve = curve;`
| 0 | `27` |  | `this.seed = Arrays.Clone(seed);`
| 0 | `28` |  | `}`
|  | `29` |  | ``
|  | `30` |  | `public ECCurve Curve`
|  | `31` |  | `{`
| 0 | `32` |  | `get { return curve; }`
|  | `33` |  | `}`
|  | `34` |  | ``
|  | `35` |  | `public byte[] GetSeed()`
| 0 | `36` |  | `{`
| 0 | `37` |  | `return Arrays.Clone(seed);`
| 0 | `38` |  | `}`
|  | `39` |  | `}`
|  | `40` |  | `}`

# Methods/Properties

.ctor(Renci.SshNet.Security.Org.BouncyCastle.Math.EC.ECCurve)
.ctor(Renci.SshNet.Security.Org.BouncyCastle.Math.EC.ECCurve,System.Byte[])
get_Curve()
GetSeed()