Net.Pkcs11Interop.HighLevelAPI81.Session.Digest C# (CSharp) Method

Digest() public method

Digests multi-part data
public Digest ( Mechanism mechanism, Stream inputStream ) : byte[]
mechanism Mechanism Digesting mechanism
inputStream Stream Input stream from which data should be read
return byte[]
        public byte[] Digest(Mechanism mechanism, Stream inputStream)
        {
            if (this._disposed)
                throw new ObjectDisposedException(this.GetType().FullName);

            if (mechanism == null)
                throw new ArgumentNullException("mechanism");
            
            if (inputStream == null)
                throw new ArgumentNullException("inputStream");

            return Digest(mechanism, inputStream, 4096);
        }

Same methods

Session::Digest ( Mechanism mechanism, Stream inputStream, int bufferLength ) : byte[]
Session::Digest ( Mechanism mechanism, byte data ) : byte[]