# < Summary

Information

Class: | Renci.SshNet.Security.Org.BouncyCastle.Crypto.AsymmetricKeyParameter
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\crypto\AsymmetricKeyParameter.cs

Line coverage
31%

Covered lines: | 6
Uncovered lines: | 13
Coverable lines: | 19
Total lines: | 42
Line coverage: | 31.5%

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 | 100%
get_IsPrivate() | 100% | 1 | 100%
Equals(...) | 0% | 2 | 0%
Equals(...) | 100% | 1 | 0%
GetHashCode() | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\crypto\AsymmetricKeyParameter.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Security.Org.BouncyCastle.Crypto`
|  | `2` |  | `{`
|  | `3` |  | `internal abstract class AsymmetricKeyParameter`
|  | `4` |  | `{`
|  | `5` |  | `private readonly bool privateKey;`
|  | `6` |  | ``
| 27 | `7` |  | `protected AsymmetricKeyParameter(`
| 27 | `8` |  | `bool privateKey)`
| 27 | `9` |  | `{`
| 27 | `10` |  | `this.privateKey = privateKey;`
| 27 | `11` |  | `}`
|  | `12` |  | ``
|  | `13` |  | `public bool IsPrivate`
|  | `14` |  | `{`
| 54 | `15` |  | `get { return privateKey; }`
|  | `16` |  | `}`
|  | `17` |  | ``
|  | `18` |  | `public override bool Equals(`
|  | `19` |  | `object obj)`
| 0 | `20` |  | `{`
| 0 | `21` |  | `AsymmetricKeyParameter other = obj as AsymmetricKeyParameter;`
|  | `22` |  | ``
| 0 | `23` |  | `if (other == null)`
| 0 | `24` |  | `{`
| 0 | `25` |  | `return false;`
|  | `26` |  | `}`
|  | `27` |  | ``
| 0 | `28` |  | `return Equals(other);`
| 0 | `29` |  | `}`
|  | `30` |  | ``
|  | `31` |  | `protected bool Equals(`
|  | `32` |  | `AsymmetricKeyParameter other)`
| 0 | `33` |  | `{`
| 0 | `34` |  | `return privateKey == other.privateKey;`
| 0 | `35` |  | `}`
|  | `36` |  | ``
|  | `37` |  | `public override int GetHashCode()`
| 0 | `38` |  | `{`
| 0 | `39` |  | `return privateKey.GetHashCode();`
| 0 | `40` |  | `}`
|  | `41` |  | `}`
|  | `42` |  | `}`

# Methods/Properties

.ctor(System.Boolean)
get_IsPrivate()
Equals(System.Object)
Equals(Renci.SshNet.Security.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
GetHashCode()