General Purpose Functions

The following general-purpose example functions perform a number of auxiliary tasks in the example programs:

ByteToStr Converts an array of bytes into a string of characters.
GetSignerCert Retrieves a certificate from a store that has a key signature extension.
MyHandleError Writes an error message and exits a program.