KexAlgorithmContract.cs 512 B

123456789101112131415161718192021
  1. using System;
  2. using System.Diagnostics.Contracts;
  3. namespace FxSsh.Algorithms
  4. {
  5. [ContractClassFor(typeof(KexAlgorithm))]
  6. abstract class KexAlgorithmContract : KexAlgorithm
  7. {
  8. public override byte[] CreateKeyExchange()
  9. {
  10. throw new NotImplementedException();
  11. }
  12. public override byte[] DecryptKeyExchange(byte[] exchangeData)
  13. {
  14. Contract.Requires(exchangeData != null);
  15. throw new NotImplementedException();
  16. }
  17. }
  18. }