コード例 #1
0
        public override void GenerateClientKeyExchange(Stream output)
        {
            BigInteger x = mSrpClient.GenerateClientCredentials(mSrpSalt, mIdentity, mPassword);

            TlsSrpUtilities.WriteSrpParameter(x, output);
            mContext.SecurityParameters.srpIdentity = Arrays.Clone(mIdentity);
        }
コード例 #2
0
ファイル: ServerSrpParams.cs プロジェクト: 894880010/MP
 /**
  * Encode this {@link ServerSRPParams} to an {@link OutputStream}.
  *
  * @param output
  *            the {@link OutputStream} to encode to.
  * @throws IOException
  */
 public virtual void Encode(Stream output)
 {
     TlsSrpUtilities.WriteSrpParameter(m_N, output);
     TlsSrpUtilities.WriteSrpParameter(m_g, output);
     TlsUtilities.WriteOpaque8(m_s, output);
     TlsSrpUtilities.WriteSrpParameter(m_B, output);
 }