Copyright  2016 HID Global Corporation/ASSA ABLOY AB. All rights reserved.

===========================
HID Global PIV API C sample
===========================

This sample demonstrates how to use the PIV API version 800-73-3 Client API provided with ActivID ActivClient 7.1 from a C program.
It implements the following scenarios:
-	How to use a PIV signature key to sign data (this sample only supports certificats with 2048-bit RSA keys).
-	How to read PIV objects from the card.

		----------------------------------------------------

1 - Required runtime environment

	- Microsoft Windows 7 SP1 or later (32 and  64-bit editions)
	- ActivID ActivClient 7.1

		----------------------------------------------------

2 - Recommended development environment

	- Microsoft Visual Studio 2015

	Headers and import libraries for the PIV DLL are located in the SDK\PIV\C\Headers and SDK\PIV\C\Libraries folders respectively.
		
	Sample sources are located in the SDK\PIV\C\Sample folder.

	The C sample is provided together with a Visual Studio 2015 solution.
	Simply copy the SDK\PIV\C folder from the ActivClient distribution CD to a hard disk location, and open the Visual Studio solution file.

		----------------------------------------------------

3 - Sample description

	You must be familiar with the PIV specifications to use this sample.
	
	This command-line sample relies on acpivapi.dll implementing the PIV API.
	
	It demonstrates the following PIV functions: 
pivMiddlewareVersion, 
pivConnect, pivDisconnect, 
pivLogIntoCardApplication, 
pivSelectCardApplication, 
pivGetData, 
pivLogoutOfCardApplication, 
pivCrypt (for signature only)