コード例 #1
0
    public virtual TlsHandshakeHash NotifyPrfDetermined()
    {
        int prfAlgorithm = mContext.SecurityParameters.PrfAlgorithm;

        if (prfAlgorithm == 0)
        {
            CombinedHash combinedHash = new CombinedHash();
            combinedHash.Init(mContext);
            mBuf.UpdateDigest(combinedHash);
            return(combinedHash.NotifyPrfDetermined());
        }
        mPrfHashAlgorithm = TlsUtilities.GetHashAlgorithmForPrfAlgorithm(prfAlgorithm);
        CheckTrackingHash((byte)mPrfHashAlgorithm);
        return(this);
    }