# < Summary

Information

Class: | Renci.SshNet.Security.Org.BouncyCastle.Math.Field.GenericPolynomialExtensionField
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\math\field\GenericPolynomialExtensionField.cs

Line coverage
0%

Covered lines: | 0
Uncovered lines: | 23
Coverable lines: | 23
Total lines: | 63
Line coverage: | 0%

Branch coverage
0%

Covered branches: | 0
Total branches: | 6
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%
get_Characteristic() | 100% | 1 | 0%
get_Dimension() | 100% | 1 | 0%
get_Subfield() | 100% | 1 | 0%
get_Degree() | 100% | 1 | 0%
get_MinimalPolynomial() | 100% | 1 | 0%
Equals(...) | 0% | 6 | 0%
GetHashCode() | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\math\field\GenericPolynomialExtensionField.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `using Renci.SshNet.Security.Org.BouncyCastle.Utilities;`
|  | `4` |  | ``
|  | `5` |  | `namespace Renci.SshNet.Security.Org.BouncyCastle.Math.Field`
|  | `6` |  | `{`
|  | `7` |  | `internal class GenericPolynomialExtensionField`
|  | `8` |  | `: IPolynomialExtensionField`
|  | `9` |  | `{`
|  | `10` |  | `protected readonly IFiniteField subfield;`
|  | `11` |  | `protected readonly IPolynomial minimalPolynomial;`
|  | `12` |  | ``
| 0 | `13` |  | `internal GenericPolynomialExtensionField(IFiniteField subfield, IPolynomial polynomial)`
| 0 | `14` |  | `{`
| 0 | `15` |  | `this.subfield = subfield;`
| 0 | `16` |  | `this.minimalPolynomial = polynomial;`
| 0 | `17` |  | `}`
|  | `18` |  | ``
|  | `19` |  | `public virtual BigInteger Characteristic`
|  | `20` |  | `{`
| 0 | `21` |  | `get { return subfield.Characteristic; }`
|  | `22` |  | `}`
|  | `23` |  | ``
|  | `24` |  | `public virtual int Dimension`
|  | `25` |  | `{`
| 0 | `26` |  | `get { return subfield.Dimension * minimalPolynomial.Degree; }`
|  | `27` |  | `}`
|  | `28` |  | ``
|  | `29` |  | `public virtual IFiniteField Subfield`
|  | `30` |  | `{`
| 0 | `31` |  | `get { return subfield; }`
|  | `32` |  | `}`
|  | `33` |  | ``
|  | `34` |  | `public virtual int Degree`
|  | `35` |  | `{`
| 0 | `36` |  | `get { return minimalPolynomial.Degree; }`
|  | `37` |  | `}`
|  | `38` |  | ``
|  | `39` |  | `public virtual IPolynomial MinimalPolynomial`
|  | `40` |  | `{`
| 0 | `41` |  | `get { return minimalPolynomial; }`
|  | `42` |  | `}`
|  | `43` |  | ``
|  | `44` |  | `public override bool Equals(object obj)`
| 0 | `45` |  | `{`
| 0 | `46` |  | `if (this == obj)`
| 0 | `47` |  | `{`
| 0 | `48` |  | `return true;`
|  | `49` |  | `}`
| 0 | `50` |  | `GenericPolynomialExtensionField other = obj as GenericPolynomialExtensionField;`
| 0 | `51` |  | `if (null == other)`
| 0 | `52` |  | `{`
| 0 | `53` |  | `return false;`
|  | `54` |  | `}`
| 0 | `55` |  | `return subfield.Equals(other.subfield) && minimalPolynomial.Equals(other.minimalPolynomial);`
| 0 | `56` |  | `}`
|  | `57` |  | ``
|  | `58` |  | `public override int GetHashCode()`
| 0 | `59` |  | `{`
| 0 | `60` |  | `return subfield.GetHashCode() ^ Integers.RotateLeft(minimalPolynomial.GetHashCode(), 16);`
| 0 | `61` |  | `}`
|  | `62` |  | `}`
|  | `63` |  | `}`

# Methods/Properties

.ctor(Renci.SshNet.Security.Org.BouncyCastle.Math.Field.IFiniteField,Renci.SshNet.Security.Org.BouncyCastle.Math.Field.IPolynomial)
get_Characteristic()
get_Dimension()
get_Subfield()
get_Degree()
get_MinimalPolynomial()
Equals(System.Object)
GetHashCode()