public SBCrypt(string secretKey, string clientChallenge) { _encParams = new EncryptionParameters(); _clientChallenge = UniSpyEncoding.GetBytes(clientChallenge); _serverChallenge = UniSpyEncoding.GetBytes(ClientInfo.ServerChallenge); _secretKey = UniSpyEncoding.GetBytes(secretKey); InitEncryptionAlgorithm(); }
public SBEncryption(string secretKey, string clientChallenge, EncryptionParameters encParam) { // reference private filed to encParams _encParams = encParam; _clientChallenge = UniSpyEncoding.GetBytes(clientChallenge); _serverChallenge = UniSpyEncoding.GetBytes(ClientInfo.ServerChallenge); _secretKey = UniSpyEncoding.GetBytes(secretKey); InitEncryptionAlgorithm(); }
public SBEncryption(EncryptionParameters encParams) { _encParams = encParams; }