public virtual TlsHandshakeHash StopTracking()
 {
     byte prfHashAlgorithm = (byte)mPrfHashAlgorithm;
     IDigest prfHash = TlsUtilities.CloneHash(prfHashAlgorithm, (IDigest)mHashes[prfHashAlgorithm]);
     if (mBuf != null)
     {
         mBuf.UpdateDigest(prfHash);
     }
     DeferredHash result = new DeferredHash(prfHashAlgorithm, prfHash);
     result.Init(mContext);
     return result;
 }
Ejemplo n.º 2
0
        public virtual TlsHandshakeHash StopTracking()
        {
            byte    prfHashAlgorithm = (byte)mPrfHashAlgorithm;
            IDigest prfHash          = TlsUtilities.CloneHash(prfHashAlgorithm, (IDigest)mHashes[prfHashAlgorithm]);

            if (mBuf != null)
            {
                mBuf.UpdateDigest(prfHash);
            }
            DeferredHash result = new DeferredHash(prfHashAlgorithm, prfHash);

            result.Init(mContext);
            return(result);
        }
Ejemplo n.º 3
0
        public virtual TlsHandshakeHash StopTracking()
        {
            byte    b      = (byte)this.mPrfHashAlgorithm;
            IDigest digest = TlsUtilities.CloneHash(b, (IDigest)this.mHashes[b]);

            if (this.mBuf != null)
            {
                this.mBuf.UpdateDigest(digest);
            }
            DeferredHash deferredHash = new DeferredHash(b, digest);

            deferredHash.Init(this.mContext);
            return(deferredHash);
        }
Ejemplo n.º 4
0
        public virtual TlsHandshakeHash StopTracking()
        {
            byte    b      = (byte)mPrfHashAlgorithm;
            IDigest digest = TlsUtilities.CloneHash(b, (IDigest)mHashes.get_Item((object)b));

            if (mBuf != null)
            {
                mBuf.UpdateDigest(digest);
            }
            DeferredHash deferredHash = new DeferredHash(b, digest);

            deferredHash.Init(mContext);
            return(deferredHash);
        }
Ejemplo n.º 5
0
        public virtual TlsHandshakeHash StopTracking()
        {
            byte    mPrfHashAlgorithm = (byte)this.mPrfHashAlgorithm;
            IDigest d = TlsUtilities.CloneHash(mPrfHashAlgorithm, (IDigest)this.mHashes[mPrfHashAlgorithm]);

            if (this.mBuf != null)
            {
                this.mBuf.UpdateDigest(d);
            }
            DeferredHash hash = new DeferredHash(mPrfHashAlgorithm, d);

            hash.Init(this.mContext);
            return(hash);
        }