You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IEncryptor.cs 562 B

10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
123456789101112131415
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Shadowsocks.Encryption
  4. {
  5. public interface IEncryptor
  6. {
  7. /* length == -1 means not used */
  8. int AddressBufferLength { set; get; }
  9. void Encrypt(byte[] buf, int length, byte[] outbuf, out int outlength);
  10. void Decrypt(byte[] buf, int length, byte[] outbuf, out int outlength);
  11. void EncryptUDP(byte[] buf, int length, byte[] outbuf, out int outlength);
  12. void DecryptUDP(byte[] buf, int length, byte[] outbuf, out int outlength);
  13. }
  14. }