def verify(mechanism, key, signature, data=nil, &block)
      common_verify(:C_VerifyInit, :C_VerifyUpdate, :C_VerifyFinal, :C_Verify,
                   mechanism, key, signature, data, &block)
    end
def verify(mechanism, key, signature, data=nil, &block)
      common_verify(:C_VerifyInit, :C_VerifyUpdate, :C_VerifyFinal, :C_Verify,
                   mechanism, key, signature, data, &block)
    end
Convenience method for the {Session#C_VerifyInit}, {Session#C_VerifyUpdate}, {Session#C_VerifyFinal} call flow.

 @see Session#encrypt
 @param [Hash, Symbol, Integer, PKCS11::CK_MECHANISM] mechanism  used mechanism
 @param [PKCS11::Object] key  used key
 @param [String] signature  signature
 @param [String] data  data to verify against signature
 @yield [PKCS11::Session::Cipher]  Cipher object for processing data parts
 @return [Boolean] <tt>true</tt> for valid signature.
 @example
     raise("wrong signature") unless session.verify(:SHA1_RSA_PKCS, rsa_pub_key, signature, plaintext)