| | | 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 | | } |