/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/ |
D | pka_ec_mont.c | 72 tmp = scalar[(i+CC_BITS_IN_32BIT_WORD-1) / CC_BITS_IN_32BIT_WORD - 1]; in EcMontPkaScalarMultWithLadderExe() 77 if ((i & (CC_BITS_IN_32BIT_WORD - 1)) == (CC_BITS_IN_32BIT_WORD - 1) ) { in EcMontPkaScalarMultWithLadderExe() 78 tmp = scalar[i / CC_BITS_IN_32BIT_WORD]; in EcMontPkaScalarMultWithLadderExe() 82 currBit = (tmp >> (i & (CC_BITS_IN_32BIT_WORD - 1))) & 1; in EcMontPkaScalarMultWithLadderExe() 152 scalarSizeWords = (scalarSizeBits + CC_BITS_IN_32BIT_WORD - 1) / CC_BITS_IN_32BIT_WORD; in EcMontPkaScalMultWithLadder()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/pal/ |
D | cc_pal_types.h | 67 …ALC_FULL_32BIT_WORDS(numBits) ((numBits)/CC_BITS_IN_32BIT_WORD + (((numBits) & (CC_BITS_IN_3… 75 …ne ROUNDUP_BITS_TO_32BIT_WORD(numBits) (CALC_FULL_32BIT_WORDS(numBits) * CC_BITS_IN_32BIT_WORD) 85 #define CC_BITS_IN_32BIT_WORD 32 macro
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/ |
D | cc_ec_edw_api.h | 38 …SIZE_IN_32BIT_WORDS ((CC_EC_EDW_MOD_SIZE_IN_BITS + CC_BITS_IN_32BIT_WORD - 1) / CC_BITS_IN_32BIT_W… 42 …SIZE_IN_32BIT_WORDS ((CC_EC_EDW_MOD_SIZE_IN_BITS + CC_BITS_IN_32BIT_WORD - 1) / CC_BITS_IN_32BIT_W…
|
D | cc_pka_defs_hw.h | 26 …RDS ((CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS + CC_PKA_WORD_SIZE_IN_BITS) / CC_BITS_IN_32BIT_WORD ) 38 …(CC_PKA_WORD_SIZE_IN_BITS + PKA_EXTRA_BITS - 1) + (CC_BITS_IN_32BIT_WORD - 1)) / CC_BITS_IN_32BIT_…
|
D | mbedtls_cc_srp.h | 70 #define CC_SRP_MAX_MODULUS_IN_WORDS (CC_SRP_MAX_MODULUS_IN_BITS/CC_BITS_IN_32BIT_WORD) 78 …ne CC_SRP_PRIV_NUM_MIN_SIZE_IN_WORDS (CC_SRP_PRIV_NUM_MIN_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD) 84 …ne CC_SRP_PRIV_NUM_MAX_SIZE_IN_WORDS (CC_SRP_PRIV_NUM_MAX_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD)
|
D | cc_ec_mont_api.h | 36 …IZE_IN_32BIT_WORDS ((CC_EC_MONT_MOD_SIZE_IN_BITS + CC_BITS_IN_32BIT_WORD - 1) / CC_BITS_IN_32BIT_W…
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/ |
D | pka_defs.h | 16 #define PKA_MIN_OPERATION_SIZE_BITS CC_BITS_IN_32BIT_WORD 29 #define PKA_WORD_SIZE_IN_32BIT_WORDS (CC_PKA_WORD_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD) 43 …_OP_SIZE_32BIT_WORDS(opSizeInBits) (GET_FULL_OP_SIZE_BITS((opSizeInBits)) / CC_BITS_IN_32BIT_WORD)
|
D | pka.c | 137 nBits = (uint32_t)S % CC_BITS_IN_32BIT_WORD; in PkaDivLongNum() 150 s1 = CC_BITS_IN_32BIT_WORD; in PkaDivLongNum() 247 size = CC_BITS_IN_32BIT_WORD*(i+1); //in bits in PkaGetRegEffectiveSizeInBits() 253 for (i = 1; i <= CC_BITS_IN_32BIT_WORD; i++) { in PkaGetRegEffectiveSizeInBits() 503 … if ((opSizeInBits+CC_PKA_WORD_SIZE_IN_BITS+PKA_EXTRA_BITS-1) % CC_BITS_IN_32BIT_WORD) { in PkaInitPka() 510 … minRegSizeInPkaWords = GET_FULL_OP_SIZE_PKA_WORDS(regSizeIn32BitWords*CC_BITS_IN_32BIT_WORD); in PkaInitPka() 596 bNom = (sizeNbits+A+X-1) % CC_BITS_IN_32BIT_WORD; /*remain bits*/ in PkaCalcNpIntoPkaReg() 614 bNom = (3*A + 3*X - 1) % CC_BITS_IN_32BIT_WORD; /*remain bits count*/ in PkaCalcNpIntoPkaReg() 629 wT = st / CC_BITS_IN_32BIT_WORD; in PkaCalcNpIntoPkaReg() 631 sh = st % CC_BITS_IN_32BIT_WORD; in PkaCalcNpIntoPkaReg() [all …]
|
D | pki.c | 127 error = PkaInitAndMutexLock(CC_BITS_IN_32BIT_WORD*opSizeWords, &pkaReqRegs); in PkiLongNumDiv() 207 error = PkaInitAndMutexLock(CC_BITS_IN_32BIT_WORD*OpSizeInWords, &pkaReqRegs); in PkiLongNumMul() 285 twoBits = (*pWord >> (CC_BITS_IN_32BIT_WORD - 2)); in PkiGetNextTwoMsBits() 287 if ((i % CC_BITS_IN_32BIT_WORD) != 0) { in PkiGetNextTwoMsBits() 290 *pWord = pScalar[(i / CC_BITS_IN_32BIT_WORD)-1]; in PkiGetNextTwoMsBits()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/proj/cc3x/ |
D | cc_pka_hw_plat_defs.h | 36 …ALID_KEY_SIZE_VALUE_IN_WORDS CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / CC_BITS_IN_32BIT_WORD 46 #define SB_CERT_RSA_KEY_SIZE_IN_WORDS (SB_CERT_RSA_KEY_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/ |
D | rsa_bsv.h | 45 …RDS (RSA_PKA_MAX_REGISTER_SIZE_IN_PKA_WORDS*(RSA_PKA_BIG_WORD_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD)) 46 #define RSA_PKA_MAX_REGISTER_SIZE_BITS (RSA_PKA_MAX_REGISTER_SIZE_WORDS * CC_BITS_IN_32BIT_WORD)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/ |
D | prod_util.c | 125 …pWordBuff[index] = CC_32BIT_MAX_VALUE >> (CC_BITS_IN_32BIT_WORD - PROD_MIN(numVal, CC_BITS_IN_32BI… in CC_PROD_BitListFromNum() 126 numVal -= PROD_MIN(numVal, CC_BITS_IN_32BIT_WORD); in CC_PROD_BitListFromNum() 154 if ((*pZeroCount == 0) || (*pZeroCount == buffWordSize*CC_BITS_IN_32BIT_WORD)) { in CC_PROD_GetZeroCount()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst_genkey.c | 61 orderSizeInWords = (pDomain->ordSizeInBits+CC_BITS_IN_32BIT_WORD-1)/CC_BITS_IN_32BIT_WORD; in EcWrstGenKeyPairBase()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecpki_kg.c | 96 orderSizeInWords = (pDomain->ordSizeInBits+CC_BITS_IN_32BIT_WORD-1)/CC_BITS_IN_32BIT_WORD; in CC_EcpkiKeyPairGenerateBase()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_ecc_util.c | 211 (pPrivKey->domain.ordSizeInBits + CC_BITS_IN_32BIT_WORD - 1) / in cc3xx_ecc_cc_priv_to_cc_publ() 212 CC_BITS_IN_32BIT_WORD; in cc3xx_ecc_cc_priv_to_cc_publ()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_ffcdh.h | 55 …FCDH_MAX_GENER_ORDER_SIZE_IN_WORDS (CC_FFCDH_MAX_GENER_ORDER_SIZE_IN_BITS / CC_BITS_IN_32BIT_WORD) 141 …H_FIPS_PRIME_SIZE_VALUE_IN_WORDS (CC_FFCDH_FIPS_PRIME_SIZE_VALUE_IN_BITS / CC_BITS_IN_32BIT_WORD)
|
D | cc_ffc_domain.h | 45 …MAX_GENER_ORDER_SIZE_IN_WORDS (CC_FFC_DOMAIN_MAX_GENER_ORDER_SIZE_IN_BITS / CC_BITS_IN_32BIT_WORD)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | gcm_alt.c | 282 pAesGcmCtx->tempBuf[3] = (pAesGcmCtx->ivSize << 3) & BITMASK(CC_BITS_IN_32BIT_WORD); in gcm_process_j0() 391 pAesGcmCtx->tempBuf[1] = (pAesGcmCtx->aadSize << 3) & BITMASK(CC_BITS_IN_32BIT_WORD); in gcm_process_lenA_lenC() 394 pAesGcmCtx->tempBuf[3] = (pAesGcmCtx->dataSize << 3) & BITMASK(CC_BITS_IN_32BIT_WORD); in gcm_process_lenA_lenC()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa.h | 53 …ALID_KEY_SIZE_VALUE_IN_WORDS CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / CC_BITS_IN_32BIT_WORD
|
D | rsa_genkey.c | 1264 modulusSizeInBits = CC_BITS_IN_32BIT_WORD * sizeWords; in RsaKgPrimeTest() 1636 error = PkaInitAndMutexLock(primeSizeInWords*CC_BITS_IN_32BIT_WORD, &maxCountRegs ); in RsaCalculateCrtParams() 1778 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pKeyGenData->KGData.p, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ() 1779 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pKeyGenData->KGData.q, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ() 1816 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pPrimeP, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ() 1817 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pPrimeQ, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 441 err = PkaInitPka(2*CC_BITS_IN_32BIT_WORD*edwSizeWords, in EcEdwSign() 520 err = PkaInitPka(2*CC_BITS_IN_32BIT_WORD*edwSizeWords, in EcEdwSign() 541 edwSizeWords*CC_BITS_IN_32BIT_WORD + CC_PKA_WORD_SIZE_IN_BITS); in EcEdwSign() 720 … if (pInSign[2*edwSizeBytes - 1] >> ((pEcDomain->ecModSizeInBits % CC_BITS_IN_32BIT_WORD) - 2)) { in EcEdwSignVerify()
|
D | pka_ec_edw.c | 341 sizeInWords = (scalarSizeInBits + CC_BITS_IN_32BIT_WORD - 1) / CC_BITS_IN_32BIT_WORD; in PkaEcEdwSpecialScalarMultBase()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/secure_debug/cc3x/ |
D | secdebug_defs.h | 27 …fine CC_BSV_SEC_DEBUG_DCU_SIZE_IN_WORDS (CC_BSV_SEC_DEBUG_DCU_SIZE_IN_BITS/CC_BITS_IN_32BIT_WORD)
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/ |
D | cc_dh_kg.c | 1261 orderQsizeBits % CC_BITS_IN_32BIT_WORD != 0) { in CC_DhCreateDomainParams() 1403 modPsizeBytes % CC_BITS_IN_32BIT_WORD != 0 || in CC_DhCheckDomainParams()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_kg.c | 363 pSizeWords =(uint16_t) KeySize / (2*CC_BITS_IN_32BIT_WORD); // RL in CC_RsaKgKeyPairCrtGenerate()
|