# < Summary

Information

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

Line coverage
0%

Covered lines: | 0
Uncovered lines: | 21
Coverable lines: | 21
Total lines: | 46
Line coverage: | 0%

Branch coverage
0%

Covered branches: | 0
Total branches: | 4
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_Degree() | 100% | 1 | 0%
GetExponentsPresent() | 100% | 1 | 0%
Equals(...) | 0% | 4 | 0%
GetHashCode() | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\math\field\GF2Polynomial.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 GF2Polynomial`
|  | `8` |  | `: IPolynomial`
|  | `9` |  | `{`
|  | `10` |  | `protected readonly int[] exponents;`
|  | `11` |  | ``
| 0 | `12` |  | `internal GF2Polynomial(int[] exponents)`
| 0 | `13` |  | `{`
| 0 | `14` |  | `this.exponents = Arrays.Clone(exponents);`
| 0 | `15` |  | `}`
|  | `16` |  | ``
|  | `17` |  | `public virtual int Degree`
|  | `18` |  | `{`
| 0 | `19` |  | `get { return exponents[exponents.Length - 1]; }`
|  | `20` |  | `}`
|  | `21` |  | ``
|  | `22` |  | `public virtual int[] GetExponentsPresent()`
| 0 | `23` |  | `{`
| 0 | `24` |  | `return Arrays.Clone(exponents);`
| 0 | `25` |  | `}`
|  | `26` |  | ``
|  | `27` |  | `public override bool Equals(object obj)`
| 0 | `28` |  | `{`
| 0 | `29` |  | `if (this == obj)`
| 0 | `30` |  | `{`
| 0 | `31` |  | `return true;`
|  | `32` |  | `}`
| 0 | `33` |  | `GF2Polynomial other = obj as GF2Polynomial;`
| 0 | `34` |  | `if (null == other)`
| 0 | `35` |  | `{`
| 0 | `36` |  | `return false;`
|  | `37` |  | `}`
| 0 | `38` |  | `return Arrays.AreEqual(exponents, other.exponents);`
| 0 | `39` |  | `}`
|  | `40` |  | ``
|  | `41` |  | `public override int GetHashCode()`
| 0 | `42` |  | `{`
| 0 | `43` |  | `return Arrays.GetHashCode(exponents);`
| 0 | `44` |  | `}`
|  | `45` |  | `}`
|  | `46` |  | `}`

# Methods/Properties

.ctor(System.Int32[])
get_Degree()
GetExponentsPresent()
Equals(System.Object)
GetHashCode()