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

Sign() public method

Signs multi-part data, where the signature is an appendix to the data
public Sign ( Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream ) : byte[]
mechanism Mechanism Signature mechanism
keyHandle ObjectHandle Signature key
inputStream Stream Input stream from which data should be read
return byte[]
        public byte[] Sign(Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream)
        {
            if (this._disposed)
                throw new ObjectDisposedException(this.GetType().FullName);

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

            return Sign(mechanism, keyHandle, inputStream, 4096);
        }

Same methods

Session::Sign ( Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream, int bufferLength ) : byte[]
Session::Sign ( Mechanism mechanism, ObjectHandle keyHandle, byte data ) : byte[]