Home
last modified time | relevance | path

Searched refs:cmacState (Results 1 – 2 of 2) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptCmac.c97 tpmCmacState_t *cmacState = &state->cmac; in CryptCmacData() local
98 TPM_ALG_ID algorithm = cmacState->symAlg; in CryptCmacData()
99 BYTE *key = cmacState->symKey.t.buffer; in CryptCmacData()
100 UINT16 keySizeInBits = cmacState->keySizeBits; in CryptCmacData()
113 if(cmacState->bcount == cmacState->iv.t.size) in CryptCmacData()
115 ENCRYPT(&keySchedule, cmacState->iv.t.buffer, cmacState->iv.t.buffer); in CryptCmacData()
116 cmacState->bcount = 0; in CryptCmacData()
118 for(;(size > 0) && (cmacState->bcount < cmacState->iv.t.size); in CryptCmacData()
119 size--, cmacState->bcount++) in CryptCmacData()
121 cmacState->iv.t.buffer[cmacState->bcount] ^= *buffer++; in CryptCmacData()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DTpmSizeChecks.c73 UINT32 cmacState = sizeof(tpmCmacState_t); in TpmSizeChecks() local
77 NOT_REFERENCED(cmacState); in TpmSizeChecks()