Xceed Encryption Library Documentation
RSAVerify Sample Application for Visual C++
Samples > RSAVerify Sample Application for Visual C++

Description

This sample demonstrates how to verify a file or a block of memory data against a signature using the RSA signing methods.

Project path

Project path: SAMPLES\VISUAL C++ 6-7\RSAVERIFY

Project file name: RSAVERIFY.DSP

Demonstrates

Properties: Signature, PublicKey and SigningMethod

Methods: ReadFile and Verify

How to use

This sample is a console application that needs at least two parameters (the public key filename and the signature filename). The operation's command-line usage specifications are: 

RSAVerify [/h | /?] [input_file] public_key_file Signature_file 

where the options /h or /? are used to show help about this sample program

input_file is the file to sign;

public_key_file is the file containing the public key that will be used to verify;

signature_file is the signature file against which the file or buffer will be checked. 

The parameters between brackets are optional. If the input file name is omitted, the text to verify is read from the console.