Home
last modified time | relevance | path

Searched refs:ordSizeInBits (Results 1 – 16 of 16) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst_dsa_verify.c43 int32_t modSizeInBits, modSizeInWords, ordSizeInBits, ordSizeInWords; in EcWrstDsaVerify() local
50 ordSizeInBits = domain->ordSizeInBits; in EcWrstDsaVerify()
51 ordSizeInWords = CALC_FULL_32BIT_WORDS(ordSizeInBits); in EcWrstDsaVerify()
55 err = PkaInitAndMutexLock(CC_MAX(ordSizeInBits, modSizeInBits), &pkaReqRegs); in EcWrstDsaVerify()
60 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET (CRY_KERNEL, PKA_L0), ordSizeInBits); in EcWrstDsaVerify()
Dec_wrst_dsa.c76 ordSizeInWords = CALC_FULL_32BIT_WORDS(pDomain->ordSizeInBits); in CalcSignature()
84 … err = PkaInitAndMutexLock(pDomain->ordSizeInBits , &pkaReqRegs); // RL Count regs to clean 9! in CalcSignature()
201 uint32_t ordSizeInBits, ordSizeInWords, modSizeInWords; in EcWrstDsaSign() local
209 ordSizeInBits = pDomain->ordSizeInBits; in EcWrstDsaSign()
210 ordSizeInWords = CALC_FULL_32BIT_WORDS(ordSizeInBits); in EcWrstDsaSign()
233 … pRndContext, pDomain->ordSizeInBits, (uint8_t*)pMaxVect/* maxVect*/, (uint8_t*)pEphemKeyBuf); in EcWrstDsaSign()
298 int32_t modSizeInBits, modSizeInWords, ordSizeInBits, ordSizeInWords; in EcWrstDsaVerify() local
305 ordSizeInBits = domain->ordSizeInBits; in EcWrstDsaVerify()
306 ordSizeInWords = CALC_FULL_32BIT_WORDS(ordSizeInBits); in EcWrstDsaVerify()
314 err = PkaInitAndMutexLock(CC_MAX(ordSizeInBits, modSizeInBits), &pkaReqRegs); in EcWrstDsaVerify()
[all …]
Dpka_ec_wrst_dsa_verify.c41 int32_t modSizeInBits, ordSizeInBits; in PkaEcdsaVerify() local
45 ordSizeInBits = CC_HAL_READ_REGISTER(CC_REG_OFFSET (CRY_KERNEL, PKA_L0)); in PkaEcdsaVerify()
115 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET (CRY_KERNEL, PKA_L0), ordSizeInBits); in PkaEcdsaVerify()
Dec_wrst.c141 ordSizeInWords = CALC_FULL_32BIT_WORDS(pPublKey->domain.ordSizeInBits); in EcWrstFullCheckPublKey()
201 ordSizeInWords = CALC_FULL_32BIT_WORDS(pPublKey->domain.ordSizeInBits); in EcWrstDhDeriveSharedSecret()
Dec_wrst_genkey.c61 orderSizeInWords = (pDomain->ordSizeInBits+CC_BITS_IN_32BIT_WORD-1)/CC_BITS_IN_32BIT_WORD; in EcWrstGenKeyPairBase()
Dpka_ec_wrst_smul_no_scap.c249 ordSizeInWords = CALC_FULL_32BIT_WORDS(domain->ordSizeInBits); in ScalarMultAff()
337 … pDomain->ecR, CALC_FULL_32BIT_WORDS(pDomain->ordSizeInBits)); in PkaEcWrstScalarMult()
Dpka_ec_wrst_smul_scap.c333 err = PkaInitAndMutexLock(CC_MAX(modSizeInBits, domain->ordSizeInBits), &pkaReqRegs); in ScalarMultSca()
346 PkaCopyDataIntoPkaReg(ord, 1, domain->ecR, CALC_FULL_32BIT_WORDS(domain->ordSizeInBits)); in ScalarMultSca()
406 … pDomain->ecR, CALC_FULL_32BIT_WORDS(pDomain->ordSizeInBits)); in PkaEcWrstScalarMult()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/
Dcc_ecpki_build_priv.c83 (pDomain->ordSizeInBits > (pDomain->modSizeInBits + 1))) { in CC_EcpkiPrivKeyBuild()
94 orderSizeInBytes = CALC_FULL_BYTES(pDomain->ordSizeInBits); in CC_EcpkiPrivKeyBuild()
Dcc_ecdsa_verify.c364 orderSizeInBytes = CALC_FULL_BYTES(pDomain->ordSizeInBits); in EcdsaVerifyFinish()
365 orderSizeInWords = CALC_FULL_32BIT_WORDS(pDomain->ordSizeInBits); in EcdsaVerifyFinish()
398 if (pDomain->ordSizeInBits >= 32*hashSizeWords) { in EcdsaVerifyFinish()
403 … (uint8_t*)(pWorkingContext->hashResult), pDomain->ordSizeInBits); in EcdsaVerifyFinish()
Dcc_ecpki_kg.c96 orderSizeInWords = (pDomain->ordSizeInBits+CC_BITS_IN_32BIT_WORD-1)/CC_BITS_IN_32BIT_WORD; in CC_EcpkiKeyPairGenerateBase()
104 err = CC_RndGenerateVectorInRange(pRndContext, (uint32_t)pDomain->ordSizeInBits, in CC_EcpkiKeyPairGenerateBase()
Dcc_ecdsa_sign.c413 orderSizeInBytes = CALC_FULL_BYTES(pDomain->ordSizeInBits); in EcdsaSignFinishInt()
414 orderSizeInWords = CALC_FULL_32BIT_WORDS(pDomain->ordSizeInBits); in EcdsaSignFinishInt()
448 if (pDomain->ordSizeInBits >= 32*hashSizeWords) { in EcdsaSignFinishInt()
453 … (uint8_t*)(pWorkingContext->hashResult), pDomain->ordSizeInBits); in EcdsaSignFinishInt()
Dcc_ecpki_build_publ.c71 (pDomain->ordSizeInBits > (pDomain->modSizeInBits + 1))) { in CC_EcpkiPublKeyBuildAndCheck()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_drbg_util.c99 if (hash_bits > pDomain->ordSizeInBits) { in cc3xx_hmac_drbg_init_with_params()
100 hash_bytes_used = PSA_BITS_TO_BYTES(pDomain->ordSizeInBits); in cc3xx_hmac_drbg_init_with_params()
Dcc3xx_psa_asymmetric_signature.c99 if (signature_length != 2*CALC_FULL_BYTES(pDomain->ordSizeInBits)) { in cc3xx_internal_ecdsa_verify()
196 if (signature_size < (2*PSA_BITS_TO_BYTES(pDomain->ordSizeInBits))) { in cc3xx_internal_ecdsa_sign()
Dcc3xx_internal_ecc_util.c211 (pPrivKey->domain.ordSizeInBits + CC_BITS_IN_32BIT_WORD - 1) / in cc3xx_ecc_cc_priv_to_cc_publ()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_ecpki_types.h197 uint32_t ordSizeInBits; member