sign.c File Reference

Tpm2Sign implementation. More...

#include "epid/member/tpm2/sign.h"
#include <stddef.h>
#include <string.h>
#include <tss2/tss.h>
#include "epid/common/math/finitefield.h"
#include "epid/common/src/epid2params.h"
#include "epid/common/src/hashsize.h"
#include "epid/common/src/memory.h"
#include "epid/common/types.h"
#include "epid/member/tpm2/getrandom.h"
#include "epid/member/tpm2/ibm_tss/conversion.h"
#include "epid/member/tpm2/ibm_tss/printtss.h"
#include "epid/member/tpm2/ibm_tss/state.h"

Macros

#define BREAK_ON_EPID_ERROR(ret)
 Handle Intel(R) EPID Error with Break. More...
 
#define BIT7   0x080
 Bit 7 binary mask.
 
#define BITS0500   0x3f
 Binary 00011111.
 

Functions

EpidStatus Tpm2Sign (Tpm2Ctx *ctx, void const *digest, size_t digest_len, uint16_t counter, FfElement *k, FfElement *s)
 Performs TPM2_Sign TPM command. More...
 
EpidStatus Tpm2ReleaseCounter (Tpm2Ctx *ctx, uint16_t counter)
 Erases random r value assosiated with counter. More...
 

Detailed Description

Tpm2Sign implementation.

Macro Definition Documentation

◆ BREAK_ON_EPID_ERROR

#define BREAK_ON_EPID_ERROR (   ret)
Value:
if (kEpidNoErr != (ret)) { \
break; \
}
no error
Definition: errors.h:41

Handle Intel(R) EPID Error with Break.