Click to open or copy the files for the Sign sample.
The Sign sample is a console application that signs files. Files signed with this sample can be later verified with the Verifile sample.
Note Run the Inituser sample (or equivalent) prior to running these samples, to create a key container for the default user.
This sample uses the following keywords:
cryptacquirecontext; cryptcreatehash; cryptdestroyhash; cryptdestroykey; cryptgetuserkey; crypthashdata; cryptreleasecontext; cryptsignhash; cryptverifysignature; exit; fclose; feof; ferror; fopen; fread; free; fwrite; getlasterror; malloc; printf; signfile; verifyfile