Home
last modified time | relevance | path

Searched refs:pkaRegCount (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/srp/
Dsrp.c27 uint32_t pkaRegCount = 7; // adding 2 for HW temp regs PKA_REG_T0 & PKA_REG_T1 in SrpPwdVerifierCalc() local
43 rc = PkaInitAndMutexLock(pCtx->groupParam.modSizeInBits, &pkaRegCount); in SrpPwdVerifierCalc()
65 PkaFinishAndMutexUnlock(pkaRegCount); in SrpPwdVerifierCalc()
78 uint32_t pkaRegCount = 8; // adding 2 for HW temp regs PKA_REG_T0 & PKA_REG_T1 in SrpHostSharedSecretCalc() local
99 rc = PkaInitAndMutexLock(pCtx->groupParam.modSizeInBits, &pkaRegCount); in SrpHostSharedSecretCalc()
156 PkaFinishAndMutexUnlock(pkaRegCount); in SrpHostSharedSecretCalc()
172 uint32_t pkaRegCount = 10; // adding 2 for HW temp regs PKA_REG_T0 & PKA_REG_T1 in SrpUserSharedSecretCalc() local
197 rc = PkaInitAndMutexLock(pCtx->groupParam.modSizeInBits, &pkaRegCount); in SrpUserSharedSecretCalc()
241 PkaFinishAndMutexUnlock(pkaRegCount); in SrpUserSharedSecretCalc()
254 uint32_t pkaRegCount = 8; // adding 2 for HW temp regs PKA_REG_T0 & PKA_REG_T1 in SrpHostPublicKeyCalc() local
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/
Dpka.c356 uint32_t *pkaRegCount) /*!< [in/out] As input - required registers for operation. in PkaInitAndMutexLock() argument
380 err = PkaInitPka(sizeInBits, 0 /*sizeInWords*/, pkaRegCount); in PkaInitAndMutexLock()
406 void PkaFinishAndMutexUnlock(uint32_t pkaRegCount) /*!< [in] Number of registers to clear. */ in PkaFinishAndMutexUnlock() argument
409 if (pkaRegCount > 0) { in PkaFinishAndMutexUnlock()
410 pkaRegCount = CC_MIN(PKA_MAX_COUNT_OF_PHYS_MEM_REGS-2, pkaRegCount); in PkaFinishAndMutexUnlock()
412 PkaClearBlockOfRegs(PKA_REG_N/*FirstReg*/, pkaRegCount, LEN_ID_MAX_BITS/*LenID*/); in PkaFinishAndMutexUnlock()
Dpki.c268 uint32_t pkaRegCount = PKA_MAX_COUNT_OF_PHYS_MEM_REGS; in PkiClearAllPka() local
271 if (PkaInitAndMutexLock(regSizeInBits, &pkaRegCount) != CC_SUCCESS) { in PkiClearAllPka()
275 PkaFinishAndMutexUnlock(pkaRegCount); in PkiClearAllPka()
Dpka.h286 uint32_t *pkaRegCount);
288 void PkaFinishAndMutexUnlock(uint32_t pkaRegCount);