Home
last modified time | relevance | path

Searched refs:CC_BITS_IN_32BIT_WORD (Results 1 – 25 of 29) sorted by relevance

12

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/
Dpka_ec_mont.c72 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/
Dcc_pal_types.h67 …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/
Dcc_ec_edw_api.h38 …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…
Dcc_pka_defs_hw.h26 …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_…
Dmbedtls_cc_srp.h70 #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)
Dcc_ec_mont_api.h36 …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/
Dpka_defs.h16 #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)
Dpka.c137 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 …]
Dpki.c127 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/
Dcc_pka_hw_plat_defs.h36 …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/
Drsa_bsv.h45 …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/
Dprod_util.c125 …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/
Dec_wrst_genkey.c61 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/
Dcc_ecpki_kg.c96 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/
Dcc3xx_internal_ecc_util.c211 (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/
Dcc_ffcdh.h55 …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)
Dcc_ffc_domain.h45 …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/
Dgcm_alt.c282 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/
Drsa.h53 …ALID_KEY_SIZE_VALUE_IN_WORDS CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / CC_BITS_IN_32BIT_WORD
Drsa_genkey.c1264 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/
Dec_edw.c441 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()
Dpka_ec_edw.c341 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/
Dsecdebug_defs.h27 …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/
Dcc_dh_kg.c1261 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/
Dcc_rsa_kg.c363 pSizeWords =(uint16_t) KeySize / (2*CC_BITS_IN_32BIT_WORD); // RL in CC_RsaKgKeyPairCrtGenerate()

12