Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_ccm.c136 uint8_t qFieldSize = 15 - sizeOfN; in ccm_init() local
182 if ((qFieldSize < 2) || (qFieldSize > 8)) { in ccm_init()
188 if ((qFieldSize < 4) && ((textDataSize >> (qFieldSize * 8)) > 0)) { in ccm_init()
221 tempBuff[0] |= (qFieldSize - 1); /* bits 0 - 2 */ in ccm_init()
225 CC_CommonReverseMemcpy(tempBuff + 16 - min(qFieldSize, 4), in ccm_init()
226 (uint8_t *)&textDataSize, min(qFieldSize, 4)); in ccm_init()
248 ctrStateBuf[0] = qFieldSize - 1; in ccm_init()
472 uint8_t qFieldSize; in ccm_finish() local
491 qFieldSize = 15 - context->sizeOfN; in ccm_finish()
500 CC_AES_BLOCK_SIZE_IN_BYTES - qFieldSize, in ccm_finish()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_ccm_internal.c43 uint8_t qFieldSize = 15 - sizeOfN; in ccm_init() local
89 if ((qFieldSize < 2) || (qFieldSize > 8)) in ccm_init()
95 if ((qFieldSize < 4) && ((textDataSize >> (qFieldSize * 8)) > 0)) in ccm_init()
133 tempBuff[0] |= (qFieldSize - 1); /* bits 0 - 2 */ in ccm_init()
137 …CC_CommonReverseMemcpy(tempBuff + 16 - min(qFieldSize, 4), (uint8_t*) &textDataSize, min(qFieldSiz… in ccm_init()
160 ctrStateBuf[0] = qFieldSize - 1; in ccm_init()
400 uint8_t qFieldSize; in ccm_finish() local
422 qFieldSize = 15 - pAesCcmCtx->sizeOfN; in ccm_finish()
431 …internal((uint8_t*) pAesCcmCtx->ctrStateBuf + CC_AES_BLOCK_SIZE_IN_BYTES - qFieldSize, qFieldSize); in ccm_finish()