< 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

MethodBranch coverage Cyclomatic complexity Line coverage
get_Data()100%10%
.ctor(...)100%10%
Sign(...)100%10%
VerifySignature(...)100%10%

File(s)

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

#LineLine coverage
 1using System;
 2
 3namespace 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        {
 015            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)
 023            : base(name)
 024        {
 025        }
 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)
 034        {
 035            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)
 046        {
 047            throw new NotImplementedException();
 48        }
 49    }
 50}