コード例 #1
0
 public SBCrypt(string secretKey, string clientChallenge)
 {
     _encParams       = new EncryptionParameters();
     _clientChallenge = UniSpyEncoding.GetBytes(clientChallenge);
     _serverChallenge = UniSpyEncoding.GetBytes(ClientInfo.ServerChallenge);
     _secretKey       = UniSpyEncoding.GetBytes(secretKey);
     InitEncryptionAlgorithm();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public SBEncryption(EncryptionParameters encParams)
 {
     _encParams = encParams;
 }