# < Summary

Information

Class: | Renci.SshNet.Security.CertificateHostAlgorithm
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\CertificateHostAlgorithm.cs

Line coverage
0%

Covered lines: | 0
Uncovered lines: | 8
Coverable lines: | 8
Total lines: | 50
Line coverage: | 0%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_Data() | 100% | 1 | 0%
.ctor(...) | 100% | 1 | 0%
Sign(...) | 100% | 1 | 0%
VerifySignature(...) | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\CertificateHostAlgorithm.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Security`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// Implements certificate support for host algorithm.`
|  | `7` |  | `/// </summary>`
|  | `8` |  | `public class CertificateHostAlgorithm : HostAlgorithm`
|  | `9` |  | `{`
|  | `10` |  | `/// <summary>`
|  | `11` |  | `/// Gets the host key data.`
|  | `12` |  | `/// </summary>`
|  | `13` |  | `public override byte[] Data`
|  | `14` |  | `{`
| 0 | `15` |  | `get { throw new NotImplementedException(); }`
|  | `16` |  | `}`
|  | `17` |  | ``
|  | `18` |  | `/// <summary>`
|  | `19` |  | `/// Initializes a new instance of the <see cref="CertificateHostAlgorithm"/> class.`
|  | `20` |  | `/// </summary>`
|  | `21` |  | `/// <param name="name">The host key name.</param>`
|  | `22` |  | `public CertificateHostAlgorithm(string name)`
| 0 | `23` |  | `: base(name)`
| 0 | `24` |  | `{`
| 0 | `25` |  | `}`
|  | `26` |  | ``
|  | `27` |  | `/// <summary>`
|  | `28` |  | `/// Signs the specified data.`
|  | `29` |  | `/// </summary>`
|  | `30` |  | `/// <param name="data">The data.</param>`
|  | `31` |  | `/// <returns>Signed data.</returns>`
|  | `32` |  | `/// <exception cref="NotImplementedException">Always.</exception>`
|  | `33` |  | `public override byte[] Sign(byte[] data)`
| 0 | `34` |  | `{`
| 0 | `35` |  | `throw new NotImplementedException();`
|  | `36` |  | `}`
|  | `37` |  | ``
|  | `38` |  | `/// <summary>`
|  | `39` |  | `/// Verifies the signature.`
|  | `40` |  | `/// </summary>`
|  | `41` |  | `/// <param name="data">The data.</param>`
|  | `42` |  | `/// <param name="signature">The signature.</param>`
|  | `43` |  | `/// <returns><see langword="true"/> if signature was successfully verified; otherwise <see langword="false"/>.</`
|  | `44` |  | `/// <exception cref="NotImplementedException">Always.</exception>`
|  | `45` |  | `public override bool VerifySignature(byte[] data, byte[] signature)`
| 0 | `46` |  | `{`
| 0 | `47` |  | `throw new NotImplementedException();`
|  | `48` |  | `}`
|  | `49` |  | `}`
|  | `50` |  | `}`

# Methods/Properties

get_Data()
.ctor(System.String)
Sign(System.Byte[])
VerifySignature(System.Byte[],System.Byte[])