support onetime auth

This commit is contained in:
Gang Zhuo
2015-09-20 15:13:11 +08:00
parent 3895446715
commit 1564e9ff81
16 changed files with 219 additions and 84 deletions
@@ -8,14 +8,16 @@ namespace Shadowsocks.Encryption
{
public const int MAX_INPUT_SIZE = 32768;
protected EncryptorBase(string method, string password)
protected EncryptorBase(string method, string password, bool onetimeauth)
{
Method = method;
Password = password;
OnetimeAuth = onetimeauth;
}
protected string Method;
protected string Password;
protected bool OnetimeAuth;
protected byte[] GetPasswordHash()
{