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

Verify() public method

Verifies a signature of data, where the signature is an appendix to the data
public Verify ( Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream, byte signature, bool &isValid ) : void
mechanism Mechanism Verification mechanism;
keyHandle ObjectHandle Verification key
inputStream Stream Input stream from which data that was signed should be read
signature byte Signature
isValid bool Flag indicating whether signature is valid
return void
        public void Verify(Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream, byte[] signature, out bool isValid)
        {
            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");
            
            if (signature == null)
                throw new ArgumentNullException("signature");

            Verify(mechanism, keyHandle, inputStream, signature, out isValid, 4096);
        }

Same methods

Session::Verify ( Mechanism mechanism, ObjectHandle keyHandle, Stream inputStream, byte signature, bool &isValid, int bufferLength ) : void
Session::Verify ( Mechanism mechanism, ObjectHandle keyHandle, byte data, byte signature, bool &isValid ) : void