CertificateHostAlgorithm.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Renci.SshNet.Security
  6. {
  7. /// <summary>
  8. /// Implements certificate support for host algorithm.
  9. /// </summary>
  10. public class CertificateHostAlgorithm : HostAlgorithm
  11. {
  12. /// <summary>
  13. /// Gets the host key data.
  14. /// </summary>
  15. public override byte[] Data
  16. {
  17. get { throw new NotImplementedException(); }
  18. }
  19. /// <summary>
  20. /// Initializes a new instance of the <see cref="CertificateHostAlgorithm"/> class.
  21. /// </summary>
  22. /// <param name="name">The host key name.</param>
  23. public CertificateHostAlgorithm(string name)
  24. : base(name)
  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="System.NotImplementedException"></exception>
  33. public override byte[] Sign(byte[] data)
  34. {
  35. throw new NotImplementedException();
  36. }
  37. /// <summary>
  38. /// Verifies the signature.
  39. /// </summary>
  40. /// <param name="data">The data.</param>
  41. /// <param name="signature">The signature.</param>
  42. /// <returns><c>True</c> if signature was successfully verified; otherwise <c>false</c>.</returns>
  43. /// <exception cref="System.NotImplementedException"></exception>
  44. public override bool VerifySignature(byte[] data, byte[] signature)
  45. {
  46. throw new NotImplementedException();
  47. }
  48. }
  49. }