2
0

CertificateHostAlgorithm.cs 1.5 KB

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