EnumAlgs Sample: Enumerate Algorithms

Click to open or copy the files for the EnumAlgs sample.

The EnumAlgs sample is a console application that lists the algorithms supported by the default PROV_RSA_FULL provider. By default, this will be the Microsoft RSA Base Provider, which is included along with the operating system.

Note   Run the Inituser sample (or equivalent) prior to running this sample in order to create a key container for the default user.

In addition to listing the name of each supported algorithm, this sample also lists the following.

The core structure of this sample can be used by applications that want to display a list of available applications to the user.

Building SDK Samples

This sample uses the following keywords:

cryptacquirecontext; cryptgetprovparam; cryptreleasecontext; get_alg_class; getlasterror; printf; strncpy; switch