TPM_SIGN(3)

NAME
TPM_Sign - Uses the TPM chip to sign data

LIBRARY
tcpa

SYNOPSIS
#include <tcpa.h>
uint32_t
TPM_Sign(uint32_t keyhandle, unsigned char *keyauth, unsigned char *data, int datalen, unsigned char *sig, unsigned int *siglen, FILE *log);

DESCRIPTION
TPM_Sign() will use a tcpa-stored key to sign a chunk of data. The key to be used must already be loaded into the TPM chip with key handle keyhandle. The authorization secret (passward SHA1 hash) needed to use the key is passed in keyauth. datalen bytes of data are passed in as data, and this is what will be signed. This will often be a hash of the actual information. The signature will be returned in *sig", and the length of the signature returned will be stored in *siglen.

This function takes the log parameter. This is used for diagnostic purposed, and outputs debugging information to the FILE log if non-NULL.

RETURN VALUES

SEE ALSO
TPM_Transmit(3), TPM_OIAP(3), TPM_GetCapability_Version(3), TPM_TakeOwnership(3), TPM_LoadKey(3), TPM_ReadPubek(3), TPM_Seal(3)

AUTHORS
Rick Wash <rwash@citi.umich.edu>